Former Egyptian president transferred to military hospital