The C-130 plane had taken off from Ganja, Azerbaijan, and was heading home when the accident took place.