An earthquake of magnitude 5.3 struck 29 km west southwest of the Nicaraguan city of Nagarote at a depth of 111 km, the US Geological Survey reported on Wednesday.