Iran warned of "severe revenge" and said arch-enemy the United States bore responsiblity for the consequences after killing one of its top commanders, Qasem Soleimani, in a strike Friday outside Baghdad airport.

The Islamic Revolutionary Guard Corps confirmed the commander of its Quds Force foreign operations arm had been killed by US forces in Baghdad, with Foreign Minister Mohammad Javad Zarif denouncing it as a "dangerous escalation".

"The Revolutionary Guards announces that the glorious commander of Islam, haj Qasem Soleimani, following a life of servitude, was martyred in an attack by America on Baghdad airport this morning," said a statement.

Iran's ambassador to Iraq, Iraj Masjedi, said "two vehicles were attacked with missiles by US forces" and all 10 passengers, including Soleimani, were "martyred".

A picture published by the media office of the Iraqi military's joint operations forces shows a destroyed vehicle on fire following a US strike on Baghdad international airport road in which top Iranian commander Qasem Soleimani was killed A picture published by the media office of the Iraqi military's joint operations forces shows a destroyed vehicle on fire following a US strike on Baghdad international airport road in which top Iranian commander Qasem Soleimani was killed Photo: IRAQI MILITARY / -

The Quds Force said the dead consisted of five members of Iraq's Hashed al-Shaabi paramilitary network and five Guards -- Brigadier General Hossein Pourjafari, Colonel Shahroud Mozafarinia, Major Hadi Taremi and Captain Vahid Zamanian.

Iran's supreme leader Ayatollah Ali Khamenei threatened "severe revenge" for "the criminals who bloodied their foul hands with (Soleimani's) blood", and vowed that "God willing, his work and his path will not be stopped".

He declared three days of mourning.

State television interrupted its regular programming to detail Soleimani's achievements in the region, recalling the many times he had "foiled" US plans.

An Iranian man holds a poster of slain Iranian Revolutionary Guards Qasem Soleimani during a special prayer ceremony in Tehran to mourn the "martyr" killed in a US strike in Baghdad An Iranian man holds a poster of slain Iranian Revolutionary Guards Qasem Soleimani during a special prayer ceremony in Tehran to mourn the "martyr" killed in a US strike in Baghdad Photo: AFP / ATTA KENARE

A black ribbon was displayed on the screen and a photo montage was shown with images of Soleimani smiling and praying.

Soleimani was one of the most popular figures in Iran and seen as a deadly adversary by America and its allies.

Iranians burn a US flag during a demonstration against American "crimes" in Tehran on January 3, 2020 following the US attack that killed Soleimani Iranians burn a US flag during a demonstration against American "crimes" in Tehran on January 3, 2020 following the US attack that killed Soleimani Photo: AFP / ATTA KENARE

President Hassan Rouhani said Iran and the "free nations of the region" would take revenge on the US for "this gruesome crime".

His death had "redoubled the determination of the nation of Iran and other free nations" to stand up to the US, Rouhani said.

Iran's top security body convened an emergency meeting.

The foreign ministry summoned an official from the Swiss embassy in Tehran, which represents US interests in Iran, to "strongly protest" the killing, according to ministry spokesman Abbas Mousavi.

Tehran residents react to the death of top Iranian commander Qasem Soleimani during a US strike on Baghdad. The killing has prompted Tehran to vow "revenge", dramatically upping the stakes in bitter tensions between Tehran and Washington. Tehran residents react to the death of top Iranian commander Qasem Soleimani during a US strike on Baghdad. The killing has prompted Tehran to vow "revenge", dramatically upping the stakes in bitter tensions between Tehran and Washington. Photo: AFPTV / Majid SOURATI

The Guards said they and the "resistance front" would "start a new chapter as of today".

"Certainly, the fleeting rejoicing of Americans and Zionists will turn into mourning before too long," said spokesman Ramezan Sharif.

"We were saddened to hear the news... but our determination has increased to take revenge on the murderous America and oppressor Zionists and this will certainly happen."

Khamenei named deputy Quds chief Esmail Qaani, who he described as one of the "most decorated commanders" of the 1980-88 Iran-Iraq war, to replace Soleimani.

People on the streets of Tehran were concerned over the threat of war.

US President Donald "Trump unfortunately acted deceitfully, saying that we won't go towards war but pushed the issue towards war" said Hamid Ranjbar, a retired government employee.

Leaders "must exercise restraint so that tensions in this region don't increase further," he told AFP.

A lawyer named Hojati expressed concern about the future. "Violence begets violence," he said.

Zarif tweeted that "the US act of international terrorism, targeting and assassinating General Soleimani... is extremely dangerous and a foolish escalation".

"The US bears responsibility for all consequences of its rogue adventurism," he added.

Zarif and his top aides held an urgent meeting to assess the situation, the ministry said.

A former Guards chief said revenge would be exacted on the United States.

"Soleimani joined his martyr brothers but we will exact terrible vengeance upon America," tweeted Mohsen Rezai, who currently heads the Expediency Council, a top state body.

"It is best for all American citizens to leave the region immediately. US occupiers will be forced to leave Iraq," he said.