Iran said the attacks were in retaliation for the death of the country’s top commander Qasem Soleimani.