Russia's ambassador to Turkey has died from a gunshot wound after an attacker opened fire at a photo exhibition in Ankara.