A small earthquake shook buildings in the Philippine capital of Manila on Wednesday but caused no damage, the government said.