An offshore earthquake of magnitude 6.9 collapsed walls of houses and buildings late Tuesday in a central Philippine province.