A magnitude-5.5 earthquake hit off coast of Costa Rica at a depth of 10 kilometers on Thursday, according to the GFZ German Research Centre for Geosciences.