MANILA, Philippines — A magnitude 4.0 earthquake struck off the coast of Surigao del Norte on Thursday afternoon, the Philippine Institute of Volcanology and Seismology (Phivolcs) said.