Iran has claimed responsibility for a rocket attack at the Al-Asad air base in western Iraq which is used by US forces – a major escalation of an already tense and chaotic situation.

The Pentagon confirmed that “more than a dozen” ballistic missiles were fired at US targets just hours after crowds filled the streets for the funeral of Qassem Soleimani, the Iranian general killed in an American drone strike last week.

Donald Trump had previously threatened retaliation if Iran used force against America, but in its claim of responsibility Iran’s Revolutionary Guard (IRGC) warned Washington against that course of action.

Iranian state television said Tehran had launched “tens” of surface-to-air missiles at the base. An IRGC statement carried on state programming further warned America’s regional allies that if any retaliatory strikes were launched from their territory, they could expect to be attacked as well.

In the days following the killing of Soleimani in Baghdad, Tehran and its proxy militias in Iraq had threatened revenge on American forces. Reports also said Iran’s supreme leader, Ali Khamenei, had declared that any response should be carried out by Iran’s own military forces.

Qassem Soleimani: Mourners fill Iran streets for funeral Show all 24 1 /24 Qassem Soleimani: Mourners fill Iran streets for funeral Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions Iranian mourners gather around a vehicle carrying the coffin of top general Qasem Soleimani during the final stage of funeral processions, in his hometown Kerman. Soleimani was killed outside Baghdad airport in a drone strike ordered by US President Donald Trump, ratcheting up tensions with Iran which has vowed "severe revenge" AFP via Getty Images Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Iranian people carry a coffin of Iranian Major-General Qassem Soleimani during a funeral procession in Tehran Official Khamenei website via Reuters Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions The assassination of the 62-year-old heightened international concern about a new war in the volatile, oil-rich Middle East and rattled financial markets AFP via Getty Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions Iranian people attend a funeral procession and burial for Iranian Major-General Qassem Soleimani, head of the elite Quds Force, who was killed in an air strike at Baghdad airport, at his hometown in Kerman, Iran January 7, 2020. Mehdi Bolourian/Fars News Agency/WANA (West Asia News Agency) via REUTERS ATTENTION EDITORS - THIS IMAGE HAS BEEN SUPPLIED BY A THIRD PARTY WANA NEWS AGENCY West Asia News Agency via Reuters Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Mourners packed the streets of Tehran for ceremonies to pay homage to Soleimani, who spearheaded Iran's Middle East operations as commander of the Revolutionary Guards' Quds Force and was killed in a US drone strike on January 3 Iranian Supreme Leader's Office/EPA Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions Iranian mourners gather around a vehicle carrying the coffin of slain top general Qasem Soleimani during the final stage of funeral processions, in his hometown Kerman on January 7, 2020. - Soleimani was killed outside Baghdad airport Friday in a drone strike ordered by US President Donald Trump, ratcheting up tensions with arch-enemy Iran which has vowed "severe revenge". The assassination of the 62-year-old heightened international concern about a new war in the volatile, oil-rich Middle East and rattled financial markets. (Photo by ATTA KENARE / AFP) (Photo by ATTA KENARE/AFP via Getty Images) ATTA KENARE AFP via Getty Images Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Iranians set a US and an Israeli flag on fire during the funeral procession AFP via Getty Images Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Iran's Supreme Leader Ayatollah Ali Khamenei, centre, with Parliament Speaker Ali Larijani, second left, and President Hassan Rouhani, third left, standing next to him as he leads a prayer over the caskets of Iranian military commander Qasem Soleimani and Iraqi paramilitary chief Abu Mahdi al-Muhandis at Tehran University Khamenei.IR/AFP via Getty Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions Mourners attend a funeral ceremony for Iranian Gen. Qassem Soleimani and his comrades, who were killed in Iraq in a U.S. drone strike on Friday, in the city of Kerman, Iran, Tuesday, Jan. 7, 2020. The leader of Iran's Revolutionary Guard threatened on Tuesday to "set ablaze" places supported by the United States over the killing of a top Iranian general in a U.S. airstrike last week, sparking cries from the crowd of supporters of "Death to Israel!" (Erfan Kouchari/Tasnim News Agency via AP) Erfan Kouchari AP Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Iranian Supreme Leader Ayatollah Ali Khamenei, left, openly weeps as he leads a prayer over the coffin of Qassem Soleimani AP Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Mourners holding posters of Qassem Soleimani AP Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Coffins of Soleimani and others who were killed in Iraq by a US drone strike, are carried on a truck surrounded by mourners during a funeral procession, at the Enqelab-e-Eslami (Islamic Revolution) square AP Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions An Iranian mourner holds a placard AFP via Getty Images Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Downtown Tehran was brought to a standstill as mourners flooded the Iranian capital Khamenei.IR/AFP via Getty Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Former Iranian Revolutionary Guards Corps chief Mohamad Ali Jafari prays on the coffins of Qasem Soleimani and of other victims during their funeral ceremony EPA Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions Iranian mourners gather during the final stage of funeral processions for slain top general Qasem Soleimani, in his hometown Kerman on January 7, 2020. - Soleimani was killed outside Baghdad airport on January 3 in a drone strike ordered by US President Donald Trump, ratcheting up tensions with arch-enemy Iran which has vowed "severe revenge". The assassination of the 62-year-old heightened international concern about a new war in the volatile, oil-rich Middle East and rattled financial markets. (Photo by ATTA KENARE / AFP) (Photo by ATTA KENARE/AFP via Getty Images) ATTA KENARE AFP via Getty Images Qassem Soleimani: Mourners fill Iran streets for funeral Tehran epa08107653 Iranians attend the funeral ceremony of slain Iranian Revolutionary Guards Corps (IRGC) Lieutenant general and commander of the Quds Force Qasem Soleimani and of other victims in Tehran, Iran, 06 January 2020. Soleimani was killed in a targeted US airstrike on 03 January 2020 in Baghdad, Iraq. EPA/ABEDIN TAHERKENAREH ABEDIN TAHERKENAREH EPA Qassem Soleimani: Mourners fill Iran streets for funeral Tehran epa08107308 A handout photo made available by Iranian Supreme Leader's Office shows Iranian Supreme Leader Ayatollah Ali Khamenei (C) praying before the coffins of slain Iranian Revolutionary Guards Corps (IRGC) Lieutenant general and commander of the Quds Force Qasem Soleimani and of other victims as Iranian President Hassan Rouhani (C-L) and other top officials attend the funeral ceremony in Tehran, Iran, 06 January 2020. Soleimani was killed in a targeted US airstrike on 03 January 2020 in Baghdad, Iraq. EPA/IRAN'S SUPREME LEADER OFFICE HANDOUT HANDOUT EDITORIAL USE ONLY/NO SALES IRAN'S SUPREME LEADER OFFICE HANDOUT EPA Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions Women hold pictures of Iranian Major-General Qassem Soleimani, head of the elite Quds Force, who was killed in an air strike at Baghdad airport, during a funeral procession and burial at his hometown in Kerman, Iran January 7, 2020. Mehdi Bolourian/Fars News Agency/WANA (West Asia News Agency) via REUTERS ATTENTION EDITORS - THIS IMAGE HAS BEEN SUPPLIED BY A THIRD PARTY WANA NEWS AGENCY West Asia News Agency via Reuters Qassem Soleimani: Mourners fill Iran streets for funeral Tehran Iranian people gather during a funeral for Iranian Major-General Qassem Soleimani, head of the elite Quds Force, and Iraqi militia commander Abu Mahdi al-Muhandis, who were killed in an air strike at Baghdad airport, in Tehran, Iran January 6, 2020. Official Khamenei website/Handout via REUTERS ATTENTION EDITORS - THIS IMAGE WAS PROVIDED BY A THIRD PARTY. NO RESALES. NO ARCHIVES Official Khamenei website Official Khamenei website via Reuters Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions Iranian mourners gather during the final stage of funeral processions for slain top general Qasem Soleimani, in his hometown Kerman on January 7, 2020. - Soleimani was killed outside Baghdad airport on January 3 in a drone strike ordered by US President Donald Trump, ratcheting up tensions with arch-enemy Iran which has vowed "severe revenge". The assassination of the 62-year-old heightened international concern about a new war in the volatile, oil-rich Middle East and rattled financial markets. (Photo by ATTA KENARE / AFP) (Photo by ATTA KENARE/AFP via Getty Images) ATTA KENARE AFP via Getty Images Qassem Soleimani: Mourners fill Iran streets for funeral Kerman - Final stage of funeral processions Men hold pictures of Iranian Major-General Qassem Soleimani, head of the elite Quds Force, who was killed in an air strike at Baghdad airport, during a funeral procession and burial at his hometown in Kerman, Iran January 7, 2020. Mehdi Bolourian/Fars News Agency/WANA (West Asia News Agency) via REUTERS ATTENTION EDITORS - THIS IMAGE HAS BEEN SUPPLIED BY A THIRD PARTY WANA NEWS AGENCY West Asia News Agency via Reuters Qassem Soleimani: Mourners fill Iran streets for funeral Tehran This Monday, Jan. 6, 2020 satellite photo from Maxar Technologies shows Enghelab Square in Tehran, Iran, amid a mass processional for Iranian Gen. Qassem Soleimani, who was killed in a U.S. airstrike in Baghdad. The funeral for Soleimani drew a crowd said by police to be in the millions in the Iranian capital, filling thoroughfares and side streets as far as the eye could see. Although there was no independent estimate, aerial footage and Associated Press journalists suggested a turnout of at least 1 million. (Satellite image Â©2020 Maxar Technologies via AP) Satellite image Maxar Technologies/AP Qassem Soleimani: Mourners fill Iran streets for funeral Tehran epa08107478 Iranians attend the funeral ceremony of slain Iranian Revolutionary Guards Corps (IRGC) Lieutenant general and commander of the Quds Force Qasem Soleimani and of other victims in Tehran, Iran, 06 January 2020. Soleimani was killed in a targeted US airstrike on 03 January 2020 in Baghdad, Iraq. EPA/ABEDIN TAHERKENAREH ABEDIN TAHERKENAREH EPA

Soleimani, who co-ordinated Iran‘s connections in the region, was killed outside Baghdad airport in the early hours of Friday morning.

On Tuesday, a funeral was held for him in Iran. A crush killed dozens of mourners.

Iraq’s parliament voted to expel US troops from the country, where about 5,000 of them are based.

But the US has reinforced its positions, while its ally the UK has also placed its military on standby.

On Tuesday, Mr Trump warned Iran against any retaliation, telling reporters in the Oval Office: “If Iran does anything they shouldn’t be doing, they are going to be suffering the consequences, and very strongly.”

After reports of the attacks emerged, the White House said the president had been briefed on the situation.

“We are aware of the reports of attacks on US facilities in Iraq,” said White House press secretary Stephanie Grisham. “The president has been briefed and is monitoring the situation closely and consulting with his national security team. “

Reports from Iranian state media quoted the IRGC, whose covert arm Soleimani had commanded, as claiming responsibility for the attack.

“This morning, courageous fighters of the IRGC’s Air Force launched a successful operation called Operation Martyr Soleimani,” it said in a statement.

Reports said the IRGC also warned other actors in the region not to respond in turn.

It added: “We warn all allied countries of the US that if attacks are launched from bases in their countries on Iran, they will be a target of military retaliation.”