A 5.5-magnitude earthquake struck Peru's Andes region, killing at least five people and causing extensive damage to homes and infrastructure.