"The Islamic Republic of Iran reserves its legitimate and inherent right based on international laws and the United Nations Charter to respond decisively to such terrorist acts," it said in a statement on Tuesday.
Seven military advisors of the Islamic Revolution Guards Corps (IRGC) were killed on Monday in an Israeli strike on Iran's Consulate in the Syrian capital.
The Foreign Ministry said that new aggression showed the "height of desperation, helplessness and strategic disorientation" of the Zionist regime following its military, political and moral failure in the Gaza Strip.
"It is obvious that the Zionists failed to stop the power of resistance in the Gaza Strip, now they have resorted to every desperate and wretched attempt to get out of their political and international isolation in the world," it added.
The ministry further noted that the attack on Iran's consulate was a flagrant violation of international law, notably the 1961 Vienna Convention on Diplomatic Relations, the 1973 Convention on the Prevention and Punishment of Crimes against Internationally Protected Persons, including Diplomatic Agents, and the United Nations Charter.
Iran expects the international community to condemn this unlawful assault, it said.