Massive fire has burnt 17th century Vanikoy Mosque in Istanbul before firefighters extinguished the flames causing major damage to the historical site.