An earthquake with a magnitude of 6.6 hit central Mindanao in the southern Philippines on Tuesday, shaking buildings and causing residents to rush from schools and offices.