The shallow quake hit 26 kilometres (16 miles) southwest of the city of Javanrud in Kermanshah province, the US Geological Survey said, near the site of a powerful quake last year that killed hundreds.