The former Egyptian president is said by a security official to have slipped and injured himself in prison and has been moved to a Cairo military hospital.