The Egyptian government appeared to have lost control of the major city of Port Said on Saturday after a court sentenced 21 fans to death for their role in a deadly soccer riot, and their supporters attacked the prison where they were being held, as well as the police and court buildings.