PYEONGCHANG, South Korea — Set to host the Winter Olympics in February, South Korea conducted a series of security drills on Tuesday to prepare against terror attacks ranging from a hostage situation, a vehicle ramming a stadium and a bomb-attached to a drone.

Police and firemen were among around 420 personnel participating in the exercise, held in front of the Olympic Stadium at PyeongChang, just 50 miles from the heavily fortified border with North Korea.

During the simulated drills, members of a SWAT team shot down a drone with a bomb attached that was flying toward a bus carrying athletes.

In another part of the mock exercise a terrorist took hostage athletes on a bus, and tried to ram the vehicle into the stadium before being gunned down by police. Officers in gas masks also removed a chemical bomb.

Anxiety on the Korean Peninsula has been rising in recent months due to a series of missile tests by North Korea as it continues its pursuit of nuclear weapons in defiance of U.N. sanctions and warnings from the United States.

Related: Haley casts some doubt on U.S. athletes at Winter Olympics

"Please keep in mind that accidents always happen where no one has expected," South Korean Prime Minister Lee Nak-yon said. "Please check until the last minute whether there are any security loopholes."

Lee did not mention North Korea, but South Korea's Defense Ministry on Friday flagged risks that North Korea could resort to terrorist or cyberattacks to spoil international events.

South Korean police officers participate in an anti-terror drill at the Olympic Stadium on Tuesday. Chung Sung-Jun / Getty Images

Some 5,000 armed forces personnel will be deployed at the Winter Games, according to South Korean government officials and documents reviewed by Reuters.

PyeongChang’s organizing committee for the 2018 Games (POCOG) has also hired a private cyber security company to guard against a hacking attack from the North, tender documents show.

To minimize the risk of provoking an aggressive North Korean reaction during the games, South Korea has asked Washington to delay regular joint military exercises until after the Olympics, the Financial Times reported. A spokesman for South Korea's defense ministry said on Tuesday that nothing has been decided.