A Turkish prosecutor injured during a courthouse siege in Istanbul has died in hospital, the Turkish Foreign Minister has announced.