Iranian forces claimed that they struck the headquarters of Mossad, Israel's spy agency, in Iraq's semi-autonomous Kurdistan region, the state media reported late Monday.
Iran's Revolutionary Guards said their attacks were in response to the killing of three commanders of the Guards in Syria last month.
"In response to the recent atrocities of the Zionist regime, causing the killing of commanders of the Guards and the Axis of Resistance ... one of the main Mossad espionage headquarters in Iraq's Kurdistan region was destroyed with ballistic missiles," the Guards said in a statement.
On Tuesday, Iraq condemned Iran's aggression, saying that it led to civilian casualties in residential areas. It also vowed to take all legal measures against Tehran.
Iraqi government will take all legal measures against these actions that are considered a violation of Iraq's sovereignty and the security of its people, including filing a complaint at the United Nations Security Council, said the statement.
The development comes amidst escalating conflict englufing the Gulf region since the Israel-Hamas war on October 7, wth with Iran's allies also entering the fray from Lebanon, Syria, Iraq and Yemen.
Since the Oct. 7 rampage by Hamas fighters into Israeli territory and the ensuing Israeli bombing campaigns in Gaza and Lebanon, more than 130 fighters of Lebanon's Iran-backed Hezbollah have been killed in hostilities.
"We assure our nation that the Guards' offensive operations will continue until avenging the last drops of martyrs' blood," the Guards' statement said.
In addition to the strikes northeast of Kurdistan's capital Erbil in a residential area near the U.S. consulate, the Guards said they "fired a number of ballistic missiles in Syria and destroyed the perpetrators of terrorist operations" in Iran, including the Islamic State.
(With inputs from Reuters)