Ousted former Egyptian Islamist president Mohamed Mursi died on Monday after he fainted in court following a hearing, state television reported.