Danish Prime Minister Mette Frederiksen was taken to the hospital with a minor whiplash injury after being struck by a man in central Copenhagen, her office reported.

Frederiksen is “safe but shaken” by the incident, which occurred on Friday. As a result, her scheduled engagements for Saturday have been cancelled.

The 39-year-old assailant was quickly arrested by police and is set to appear in a pre-trial custody hearing in a Copenhagen district court later on Saturday.

Details about the incident in Kultorvet square, including the suspect’s motive, have not yet been released. Witnesses told Danish media that the 46-year-old prime minister was able to walk away from the scene.

Condemnation has poured in from across Europe.

“Shocked to hear about the violence against my friend Prime Minister Mette Frederiksen of our ally Denmark. I strongly condemn all violence against our political leaders,” wrote NATO Secretary General Jens Stoltenberg on the social media platform X.

European Commission President Ursula von der Leyen called it a “despicable act which goes against everything we believe and fight for in Europe,” while French President Emmanuel Macron denounced it as “unacceptable” and wished Frederiksen a quick recovery.

“I strongly condemn any form of violence against democratically elected leaders in our free societies,” Finnish Prime Minister Petteri Orpo said.

“An attack on a democratically elected leader is also an attack on our democracy,” wrote Swedish Prime Minister Ulf Kristersson on X.

The incident comes as the EU’s 27 countries elect more than 700 members of the European Parliament during four days of voting that began on Thursday. Voters in Denmark go to the polls on Sunday.