Egypt's military gives Morsy ultimatum