PARIS (AP) — A young French man who recently was discharged from a psychiatric hospital is under investigation for an attempted terrorist attack after he brandished a knife and tried to breach security at the Eiffel Tower, authorities said Sunday.

No one was hurt in the incident late Saturday, though the tower was briefly evacuated, according to a statement from the company that manages the monument. The tower reopened as usual Sunday morning.

It is the latest of several attempted attacks on security forces guarding prominent sites in France as part of heightened protective measures prompted by deadly attacks since 2015. Monuments in the French capital are occasionally evacuated for security reasons as part of those measures.

In Saturday’s incident, the suspect tried to force his way into the secure zone beneath the tower, held out a knife and said “Allahu akbar,” the Arabic phrase for “God is great,” an official close to the investigation said. He quickly was surrounded by security forces and surrendered, the official said. A Paris police official said no shots were fired. Both officials weren’t authorized to be publicly named.

The suspect later told police that he had wanted to attack a soldier and had been in touch with a member of the Islamic State group who encouraged him to do so, according to the official close to the investigation.

The official said the claim prompted investigators to upgrade the seriousness of the alleged offense, which originally they classified as a common crime by someone with a history of psychiatric problems. As a result, the probe has been handed to counterterrorism prosecutors.

The man is now under investigation for involvement in a terrorist enterprise and an attempted terrorism-related attack on security forces.

The suspect was born in Mauritania in 1998, but has French citizenship, the official said. His name wasn’t released.

The Eiffel Tower was lit up on Saturday night in the colors of the Paris-Saint Germain soccer club and with lights welcoming star Brazilian striker Neymar to the team.