The Iranian ambassador, Hossein Akbari, said Israeli F-35 fighter jets "brutally targeted my place of residence and the consular section of the embassy, along with Iran's military attaches".
[...] the Revolutionary Guards put out a statement saying that seven of its officers were killed, including Brig-Gen Mohammad Reza Zahedi and Brig-Gen Mohammad Hadi Haji-Rahimi, whom it described as commanders and "senior military advisers".
[...] Iranian Foreign Minister Hossein Amir-Abdollahian described the strike as "a violation of all international obligations and conventions" and "blamed the consequences of this action on the Zionist regime", the Iranian foreign ministry said.
So reportedly Israel hit the Iranian embassy in Syria. If some general of country X is in their embassy in country Y, and you're at war with both countries, what international conventions are being violated if you bomb the embassy to smithereens to kill said general?
Aside, but for completeness, in the meantime the IDF standpoint was made public:
“According to our intelligence, this is no consulate and this is no embassy,” Israel Defense Forces spokesperson Rear Adm. Daniel Hagari told CNN. [...] “This is a military building of Quds forces disguised as a civilian building in Damascus.”
Anyhow, my question is/was purely based assuming the Iranian framing, as the most interesting question. (Israeli strikes on unassuming buildings in Syria said to house IRGC were more numerous.) Also from that CNN piece, the Syrian reaction (similar to Iran's):
Syrian Foreign Minister Faisal Mekdad meanwhile described the strike as a “gross violation of international regulations, especially the 1961 Vienna Convention on Diplomatic Relations.”