CAIRO — News agency: Egypt prosecutor orders detention of ousted president over contact with Hamas.