An earthquake of magnitude 7.8 struck off Mindanao in the southern Philippines on Monday, triggering a tsunami alert in the nearby region.