A 5.5-magnitude earthquake in the Andes region of Peru has killed at least 5 people and injured more than 20.