The quake occurred at 3 a.m. local time about 22 miles north of the Egyptian city of Suez, the US Geological Survey said.