Egypt's prosecutor general quits amid protest