CAIRO — Egypt's official news agency reports that the state prosecutor has ordered the detention of the ousted president over alleged contacts with Hamas to help in his escape from prison in 2011.

The MENA news agency said Mohammed Morsi has been detained for 15 days for investigation into the charges.

Egypt's military has been holding Morsi in an undisclosed location since deposing him on July 3.