Iraqi Prime Minister Adel Abdul Mahdi on Monday condemned U.S. airstrikes on bases of Iranian-backed Iraqi militia, a move that could plunge Iraq further into the heart of a proxy conflict between the United States and Iran.

The U.S. military carried out airstrikes on Sunday against the Kataib Hezbollah militia in response to the killing of a U.S. civilian contractor in a rocket attack on an Iraqi military base, officials said.

At least 25 militia fighters were killed and 55 wounded.

“The prime minister described the American attack on the Iraqi armed forces as an unacceptable vicious assault that will have dangerous consequences,” his office said.

The airstrikes will force Iraq to reconsider working with the U.S.-led international coalition against Islamic State, the National Security Council said in a statement.

Tensions have risen between Iran and the United States — Iraq’s two main allies — since last year when President Donald Trump pulled out of world powers’ 2015 nuclear deal with Tehran and reimposed sanctions on the Islamic Republic.

Earlier this month, U.S. Secretary of State Mike Pompeo blamed Iranian-backed forces — which helped Baghdad turn the tables on Islamic State militants and are integrated into the Iraqi security apparatus — for attacks on U.S. bases in Iraq. He said any attacks by Tehran or proxies harming Americans or allies would be “answered with a decisive U.S. response.”

U.S. officials said Washington had displayed patience amid escalating provocations from Iran and its allies, but that it was time to re-establish deterrence against aggression.

“After so many attacks it was important for the president to direct our armed forces to respond in a way that the Iranian regime will understand,” U.S. special representative for Iran Brian Hook said in a news briefing.

Iran denies involvement in attacks on U.S. forces and has condemned the air raids as “terrorism.

“This claim without any evidence cannot justify bombing and killing people in violation of international law,” Iranian government spokesman Ali Rabiei said.

The strikes come at a time of protests in Iraq with thousands taking to the streets to condemn, among other things, militias such as Kataib Hezbollah and their Iranian patrons, which support Abdul Mahdi’s government.

They also demand an overhaul of a political system they see as corrupt and keeping most Iraqis in poverty.

At least 450 people have been killed as security forces and militias have sought to quell the protests, which forced Abdul Mahdi to resign. He remains in a caretaker capacity.

About 400 people in Basra protested against the airstrikes, demonstrating in support of the militias.

The raids brought threats of reprisal. “Our response will be very tough on the American forces in Iraq,” militia commander Jamal Jaafar Ibrahimi, also known as Abu Mahdi al-Mohandes, said on Sunday.

Mohandes is a senior commander of the Popular Mobilization Forces (PMF), an umbrella grouping of paramilitary organizations mostly consisting of Iranian-backed Shiite Muslim militias that were integrated into Iraq’s armed forces.

He is also one of Iran’s most powerful allies in Iraq and formerly headed Kataib Hezbollah, which he founded.

His threat was met positively by his Iranian backers.

“Taking revenge and responding to this crime are the natural right of the Iraqi nation and those groups that defend Iraq,” said Iran’s Islamic Revolutionary Guard Corps, which trains some Iraqi militias including Kataib Hezbollah.

Iraqi security sources said U.S. forces in northern Iraq were ramping up security.

The PMF bolstered Iraq’s security forces during their battle to retake a third of the country from Islamic State insurgents.

They were later folded into Iraq’s official security structure and wield major political influence.

The Iraqi government is in control of the militias in “95 percent of cases,” Abdul Mahdi said at a televised Cabinet meeting.

He said was told about the ai strikes hours before in a phone call with U.S. Defense Secretary Mark Esper and tried to warn the militia.

The Iraqi government cannot do much because of its caretaker status and has to take its lead from parliament, Abdul Mahdi told his ministers.

Iraq’s Fatih alliance, a political bloc representing the militias that holds the second largest number of seats in parliament, condemned the airstrikes.

Their main rival, populist cleric Moqtada al-Sadr, who leads parliament’s largest grouping, said he was willing to work with them to end the U.S. military presence in Iraq. But he also called on them to reign in their militias so as not to provide an excuse for further U.S. attacks.

Iraq’s influential top Shiite cleric, Grand Ayatollah Ali al-Sistani, condemned the strikes but his office also denounced alleged attacks by Iranian-backed militias on U.S. personnel.

He urged Iraqi authorities to prevent such attacks and “ensure Iraq does not become a field for settling regional and international scores and that others do not interfere in its internal affairs.

Abdul Mahdi said his government’s policy was to keep Iraq out of regional alliances and away from war.

Any escalation risks Iraq becoming the battlefield for a proxy war between the United States and Iran, which would also ensnare regional allies of both sides.

Lebanon’s powerful Shiite group Hezbollah, backed by Iran, also condemned the airstrikes.

Israeli Prime Minister Benjamin Netanyahu’s office said he congratulated Pompeo “on the important operation by the United States against Iran and its proxies in the region..”

Russia, which like Iran and Hezbollah backs President Bashar Assad’s government in Syria’s civil war, said the strikes were unacceptable and counterproductive. The Syrian government also denounced the airstrikes.