Tremors were felt across the island, including in the capital of Taipei, where buildings shook from the shock.