A 6.6-magnitude earthquake has hit Taiwan just off its northeast coast, according to the U.S. Geological Survey.