An earthquake of magnitude 6.4 struck in the central American nation of Nicaragua on Thursday, the U.S. Geological Survey reported.