A magnitude 6.2 earthquake struck off the southern Philippines near Mindanao, recorded at a depth of 42.2 miles.