BAGHDAD — Iraqi military officials strongly condemned the United States military on Friday for airstrikes launched overnight that they said killed three Iraqi soldiers, two police officers and a civilian worker, and damaged an unfinished civilian airport.

American officials said Friday that the strikes had hit five sites where rockets and other weapons were stored by an Iranian-backed militia, Kataib Hezbollah. But according to multiple Iraqi military officials, who until now had been largely supportive of the U.S. role in Iraq, the bombings killed members of the Iraqi military and police.

American officials said Kataib Hezbollah fighters were also killed in the airstrikes but they could not yet say how many.

The strikes were retaliation for a rocket attack on Wednesday that killed two Americans and a British soldier and wounded 14 others at Camp Taji, an Iraqi military base north of Baghdad, American officials said.