By Jung Min-hoThe government has issued a safety warning for Koreans traveling or living in Taiwan after a 6.4-magnitude earthquake struck off the east coast of the country late Tuesday.

Fourteen Koreans and dozens of Japanese were reportedly among the injured.

"We advise those who are traveling or living in Taiwan not to visit the quake-affected region," the Ministry of Foreign Affairs said Wednesday. "As more aftershocks are expected to occur, please pay extra attention to your safety."

The quake struck about 22 kilometers northeast of Hualien, a popular city for tourists, killing at least four people and injuring 202 others. The injured are largely from the Marshal Hotel.

Rescue workers are searching for people who are believed to be trapped inside a collapsed building. It is unclear how many are missing.

Aftershocks, including a 5.4-magnitude tremor, hit near the city after the quake, according to the United States Geological Survey. More are expected.

The quake occurred after smaller tremors shook the area in the past few days. It comes exactly two years after a quake of the same magnitude struck the country's southern city of Tainan, where more than 100 people were killed.