Egypt has declared a month-long state of emergency as more violence erupts.