Egypt's military rulers say Prime Minister Ahmed Shafiq has resigned.