Hurricane Otto battered Nicaragua and Costa Rica with powerful winds and torrential rains on Thursday, the same day a major earthquake shook the region, with homes damaged and thousands evacuated, but no deaths reported.