The Russian ambassador to Turkey was shot in the back and killed as he gave a speech at an Ankara art gallery this afternoon by an off-duty police officer who shouted "Don't forget Aleppo" and "Allahu Akbar" as he opened fire.

The Russian foreign ministry confirmed the death of envoy Andrei Karlov, calling it a "terrorist act". Relations between Moscow and Ankara have long been strained over the conflict in Syria, with the two support opposing sides in the war.

See video below. Warning: DISTURBING CONTENT

Turkey has struggled with a string of attacks by Islamist and Kurdish militants but the killing of a Russian envoy could have resonance throughout the region.

Russia is a close ally of Syrian President Bashar al-Assad and its air strikes were instrumental in helping Syrian forces end rebel resistance last week in the northern city of Aleppo. President Tayyip Erdogan, however, has been a vociferous opponent of Assad.

"We regard this as a terrorist act," said Russian Foreign Ministry spokeswoman Maria Zakharova. "Terrorism will not win and we will fight against it decisively."

FILE PHOTO - Russian President Vladimir Putin next to Russian Ambassador to Turkey Andrei Karlov.FILE PHOTO - Russian President Vladimir Putin next to Russian Ambassador to Turkey Andrei Karlov.

The attacker was smartly dressed in black suit and tie, and standing behind the ambassador as he made his speech at an exhibition, a person at the scene told Reuters.

"He took out his gun and shot the ambassador from behind. We saw him lying on the floor and then we ran out," said the witness, who asked not to be identified.

Two security sources identified the gunman as an off-duty police officer who worked in the Turkish capital.

A Reuters cameraman at the scene said gunfire rang out for some time after the attack. The Anadolu news agency said the gunman had been "neutralised", apparently killed.

A video showed the attacker shouting: "Don't forget Aleppo, don't forget Syria!" As screams rang out, he could be seen pacing about and shouting as he held the gun in one hand and waved the other in the air.

Another photograph showed four people including what appeared to be the ambassador lying on the floor.

Russia and Turkey have both been involved in the conflict in Syria, which borders Turkey. Turkey has been a staunch opponent of Assad, while Russia has deployed troops and its air force in support of the Syrian leader.

The U.S. State Department, involved in diplomatic contacts with Russia in an attempt to resolve a refugee crisis unfolding around the city of Aleppo, condemned the attack.

Tensions have escalated in recent weeks as Russian-backed Syrian forces have fought for control of the eastern part of Aleppo, triggering a stream of refugees.

It was not immediately clear who was behind the attack. Islamic State militants have been active in Turkey and carried out several bomb attacks on Turkish targets over the last year. 

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.