The epicentre of the quake is believed to have been near the Pacific coast of the northwestern city of Esmeraldas.