Britain-based war monitoring group the Syrian Observatory for Human Rights said eight people were killed when "Israeli missiles... destroyed the building of an annex to the Iranian embassy".
Israel did not immediately comment on the deadly attack in Damascus which comes at a time of soaring tensions over its Gaza war against Palestinian militants Hamas, and intensifying violence between Israel and Iran's allies.
AFP reporters saw the annex building had caved in, and emergency services were rushing to treat the wounded and search for victims under the rubble, in the upscale Damascus district of Mazzeh.
Syria's defence ministry said "the attack destroyed the entire building, killing and injuring everyone inside, and work is underway to recover the bodies and rescue the wounded from under the rubble".
Iranian state TV said among those killed was a senior commander of the Islamic Revolutionary Guard Corps' foreign operations arm, the Quds Force, Brigadier General Mohammad Reza Zahedi.
The Observatory later said it had "confirmed the killing of a high-ranking leader who served as the leader of the Quds Force for Syria and Lebanon, two Iranian advisors, and five members of the Iranian Revolutionary Guard".
The Damascus strikes were the fifth in eight days to hit Syria, whose President Bashar al-Assad is supported by Iran, Israel's long-time arch foe in the region.
SANA had earlier reported that "our air defence systems confronted enemy targets in the vicinity of Damascus".
Iran's Nour news agency said "Hossein Akbari, ambassador of the Islamic Republic of Iran in Damascus, and his family were not harmed in the Israeli attack".
The ambassador later said that "the Israeli attack on the Iranian consulate shows the reality of the Zionist entity which recognises no international laws and does all that is inhumane to achieve its goals".
Akbari told Iranian state TV that "at least 5 people were killed in the attack which was carried out by F35 fighter jets".
'Heinous attack'
Syrian Foreign Minister Faisal Mekdad denounced the attack after visiting the site.
"We strongly condemn this heinous terrorist attack that targeted the Iranian consulate building in Damascus killing a number of innocent people," Mekdad said in a statement carried by official news agency SANA.
The Gaza war started with the October 7 Hamas attack on Israel has devastated the territoty and also seen Israel and Hezbollah exchange near-daily fire along the Lebanese border.
Israeli has also struck targets in Syria, mostly army positions as well as those of Iran-backed combatants including from Lebanon's Iran-backed Hezbollah movement.
The Damascus strike came three days after the Observatory reported Israeli strikes that killed 53 people in Syria, including 38 soldiers and seven members of Hezbollah.
It was the highest Syrian army toll in Israeli strikes since the Israel-Hamas war began, said the monitor.
"Syria and Lebanon have become one extended battleground from the Israeli perspective," Riad Kahwaji, head of the Institute for Near East and Gulf Military Analysis, told AFP after the Friday strikes.
"Israel warplanes hit targets in both countries almost daily in a sustained effort to destroy Hezbollah military infrastructure and to also tarnish the group's image," he said.
"Israeli strikes have clearly escalated in size and depth" in Lebanon, he added.