Azerbaijan Airlines said the Embraer 190 aircraft had been flying from Baku to Grozny in Russia, but had been forced to make an emergency landing.