MANAGUA - A 5.9-magnitude earthquake has hit the Pacific coast of Nicaragua close to three volcanoes, the Nicaraguan Institute of Territorial Studies (INETER) said Thursday.