Baghdad/washington - Iran launched a missile attack on US-led forces in Iraq in the early hours of Wednesday in retaliation for the US drone strike on an Iranian commander whose killing has raised fears of a wider war in the Middle East.

Iran fired more than a dozen ballistic missiles from its territory against at least two Iraqi facilities hosting US-led coalition personnel at about 1:30 a.m. (2230 GMT), the US military said.

US President Donald Trump said Wednesday Iran appeared to be “standing down” after missile strikes on US troop bases in Iraq that resulted in no American or Iraqi deaths.

“All of our soldiers are safe and only minimal damage was sustained at our military bases. Our great American forces are prepared for anything,” he said in an address to the nation from the White House.

“Iran appears to be standing down, which is a good thing for all parties concerned and a very good thing for the world. No American or Iraqi lives were lost.”

Trump announced the United States would be imposing “additional punishing sanctions” on Iran but made no mention of possible retaliation to Tuesday’s missile attacks - seen by experts as a measured first response by Iran to the killing of General Qasem Soleimani in an American drone strike.

Iran’s Islamic Revolutionary Guards Corps confirmed they fired the missiles in retaliation for last week’s killing of Qassem Soleimani, according to a statement on state TV.

The force advised the United States to withdraw its troops from the region to prevent more deaths and warned US allies including Israel not to allow attacks from their territories.

Iranian state television said Wednesday that at least 80 ‘American terrorists’ were killed.

“Last night they received a slap,” Supreme Leader Ayatollah Ali Khamenei said of the Americans in a speech after the missile strikes.

He made clear that Iran’s actions were in response to the U.S. killing of Revolutionary Guard Gen. Qassem Soleimani, whose death last week in a drone strike in Baghdad prompted angry calls for vengeance and drew massive crowds of Iranians to the streets in mourning. Khamenei himself wept at the funeral in a sign of his bond with the commander.

“These military actions are not sufficient (for revenge). What is important is that the corrupt presence of America in this region comes to an end.”

Satellite imagery showed at least five impact sites on the Ain al-Asad base in Iraq’s western Anbar province, each leaving charred blast marks that damaged or destroyed buildings. One obliterated a structure in a row of buildings next to a line of helicopters, though none of the aircraft appeared damaged, according to the imagery provided by Planet Labs, Inc.

Iran’s foreign minister tweeted that Tehran had taken and “concluded proportionate measures in self-defense,” adding that Tehran did “not seek escalation” but would defend itself against further aggression.

Iraqi Prime Minister Adel Abdul-Mahdi said he received notification from Iran just after midnight that its retaliation “was starting or would start soon” and would focus only on U.S. positions. The militaries of Finland and Lithuania, which had personnel at one of the targeted bases, said they received information about an imminent attack and had time to move to shelters or leave the base.

Pentagon spokesman Jonathan Hoffman said in a statement that the bases targeted were al-Asad air base and another facility in Erbil, Iraq.

“As we evaluate the situation and our response, we will take all necessary measures to protect and defend US personnel, partners, and allies in the region.”

Hours earlier on Tuesday, US Defense Secretary Mark Esper said the United States should anticipate retaliation from Iran over Friday’s killing in Iraq of Soleimani, commander of the elite Quds Force.

Iranian Foreign Minister Mohammad Javad Zarif said Iran “took & concluded proportionate measures in self-defense under Article 51 of the UN Charter,” targeting the bases where the attack against its citizens and senior officials was launched.

“We do not seek escalation or war, but will defend ourselves against any aggression,” he wrote in a post on Twitter.

If the US military was indeed spared casualties, and Iran has completed its threatened retaliation for the US drone strike on Soleimani, as Zarif suggested, there might be an opportunity for Washington and Tehran to seek an off-ramp to their increasingly violent confrontation.

Asian stock markets, which had been roiled by the attack, pared some of their losses after the tweets from Trump and Zarif. US crude prices CLc1 also retreated after surging almost 5 percent on worries any conflict could cut oil supplies.

The U.S. Federal Aviation Administration said it would ban U.S. carriers from operating in the airspace over Iraq, Iran, the Gulf and the Gulf of Oman. Singapore Airlines (SIAL.SI) had already diverted all flight routes from Iranian airspace.

Democrats in the US Congress and some of the party’s presidential contenders warned about the escalating conflict.

“Closely monitoring the situation following bombings targeting US troops in Iraq,” US House of Representatives Speaker Nancy Pelosi said on Twitter. “We must ensure the safety of our service members, including ending needless provocations from the Administration and demanding that Iran cease its violence. America & world cannot afford war.”

A senior Iranian official said on Tuesday that Tehran was considering several scenarios to avenge Soleimani’s death. Other senior figures have said the Islamic Republic would match the scale of the killing when it responds, but that it would choose the time and place.

Soleimani’s burial went ahead after several hours of delay following a stampede that killed at least 56 people and injured more than 210, according to Iran’s semi-official Fars news agency.

Iran TV reported Soleimani was buried after the missile attacks. “His revenge was taken and now he can rest in peace,” it said.

The missiles were launched on Wednesday at the same time that he was killed last on Friday.

Soleimani’s body had been taken to holy Shi’ite Muslim cities in Iraq and Iran, as well as the Iranian capital, Tehran, before arriving to be buried in the city cemetery’s “martyrs section”, according to the semi-official news agency ISNA.

In each place, huge numbers of people filled thoroughfares, chanting: “Death to America” and weeping with emotion. Supreme Leader Ayatollah Ali Khamenei wept as he led prayers in Tehran.

Prompted by the strong public backlash over Soleimani’s killing on Iraqi soil, lawmakers in Iraq voted on Sunday to demand a removal of all foreign forces from the country.