PARIS (Reuters) - A 45-year-old IT assistant at the police headquarters in central Paris went on a knife rampage inside the building on Thursday, killing three police officers and an administrative worker before he was shot dead by an officer, French officials said.

French broadcaster BFM TV said the attacker had converted to Islam 18 months ago.

Officials did not say anything about the motive for the attack and they said they were still trying to discover if there was a terrorism link.

French President Emmanuel Macron said he had spent two hours at the police headquarters to show his support. “Today at midday in France, a real drama took place,” he said late on Thursday at a forum with voters in southern France.

“I wanted to be at their side,” he said of the police officers in Paris. “They are in a state of shock,” Macron said, before inviting the audience at the forum to join him in a minute’s silence.

The attack took place close to Notre Dame Cathedral in a historic neighbourhood of central Paris that sits on an island in the Seine river.

As ambulances and emergency service helicopters arrived, the area around the police headquarters was sealed off and a metro station was shut for security reasons as the attack unfolded. Armed security personnel in camouflage gear were deployed to a bridge over the Seine.

Slideshow ( 8 images )

People coming out of the police headquarters, visibly upset, could be seen hugging each other for support.

The dead were three men and a woman, according to Paris prosecutor Remy Heitz. Another person was wounded and was undergoing surgery.

Heitz said police were searching the attacker’s home, and that anti-terrorist investigators were evaluating what had happened. The attacker’s wife had been brought into police custody but not charged, the Paris prosecutor’s office said.

Speaking outside the police headquarters, French Interior Minister Christophe Castaner said the attacker was known to his colleagues and had worked for some time in the IT department.

“He had never presented any behavioural issues, he had never presented the slightest cause for alarm before going on his deadly rampage today,” Castaner said.

A police official and member of the collective “Police up in Anger”, which lobbies for better conditions for officers, was quoted by franceinfo radio as saying the assailant had experienced issues with his supervisor.

Slideshow ( 8 images )

“I know there were tensions between him and his direct supervisor,” Christophe Crepin told franceinfo. “I do not think this is a terrorist act.”

Jean-Marc Bailleul, a police union leader, described the incident as criminal rather than an act of terror. “It was a moment of madness,” Bailleul told BFM TV.

In the past four years, the French capital has been rocked by violent attacks resulting in mass casualties.

Coordinated bombings and shootings by Islamist militants in November 2015, at the Bataclan theatre and other locations around Paris, killed 130 people in the deadliest attacks in France since World War Two.

In a three-day killing spree in January 2015, Islamist gunmen killed reporters and illustrators at satirical weekly Charlie Hebdo, police officers, and shoppers at a Jewish supermarket.