Buildings shook briefly in Taiwan's capital Taipei on Monday during an earthquake, whose epicenter the government said was off the island's east coast, with no immediate reports of damage.