ISTANBUL — Russia’s ambassador to Turkey was assassinated at an Ankara art exhibit on Monday evening by a lone Turkish gunman shouting “God is great!” and “don’t forget Aleppo, don’t forget Syria!” in what Russia called a terrorist attack.
The gunman, who was described by Ankara’s mayor as a policeman, also wounded at least three others in the assault, which was captured on Turkish video, before he was killed by other officers in a shootout.
The assassination instantly vaulted relations between Turkey and Russia to a new level of crisis over the protracted Syria conflict on Turkey’s southern doorstep. It came after days of protests by Turks angry over Russia’s support for Syria’s government in the conflict and the Russian role in the killings and destruction in Aleppo, the northern Syrian city.
The envoy, Andrey G. Karlov, was shot from behind and immediately fell to the floor while speaking at an exhibition, according to multiple accounts from the scene, the Contemporary Arts Center in the Cankaya area of Ankara.
The gunman, wearing a dark suit and tie, was seen in video footage of the assault shouting in Arabic: “God is great! Those who pledged allegiance to Muhammad for jihad. God is great!”
Then he switched to Turkish and shouted: “Don’t forget Aleppo, don’t forget Syria! Step back! Step back! Only death can take me from here.”
Turkish officials said that the gunman was killed after a shootout with Turkish Special Forces police. The assailant’s identity was not immediately known.
Russia’s Foreign Ministry spokeswoman, Maria Zakharova, told the Rossiya 24 news channel that Mr. Karlov had died of his wounds in what she described as a terrorist attack.
CNN Turk published images showing several people lying on the floor of the gallery.
Russia’s Tass news agency initially quoted witnesses of the attack as saying that there had been an “assassination attempt” against Mr. Karlov, and that he had been shot from behind while finishing his opening remarks at the opening of the exhibition, called “Russia Through Turks’ Eyes.”
The attack was a rare instance of an assassination of any Russian envoy. Historians said it might have been the first since Pyotr Voykov, a Soviet ambassador to Poland, was shot to death in Warsaw in 1927.
While the Russian and Turkish governments back different sides in the Syria conflict, they had been collaborating in recent days in efforts to evacuate civilians from Aleppo.
Mr. Karlov, who started his career as a diplomat in 1976, worked extensively in North Korea over two decades, before moving to the region in 2007, according to a biography on the Russian Embassy’s website. He became ambassador in July 2013.