The apparent attack Sunday night, Tehran’s first such strike in two months, threatened to further complicate efforts to broker a peace deal aimed at ending the war.