A moderate 5.2 magnitude earthquake in Peru killed at least nine people and left 40 injured, crushing villagers under rubble and blocking roads, officials said Monday.