Mubarak-era prosecutor general resigns