Forensic police, right, investigate at the scene of a shooting in Liege, Belgium, Tuesday, May 29, 2018. A gunman killed three people, including two police officers, in the Belgian city of Liege on Tuesday, a city official said. Police later killed the attacker, and other officers were wounded in the shooting.(AP Photo/Geert Vanden Wijngaert)
Forensic police, right, investigate at the scene of a shooting in Liege, Belgium, Tuesday, May 29, 2018. A gunman killed three people, including two police officers, in the Belgian city of Liege on Tuesday, a city official said. Police later killed the attacker, and other officers were wounded in the shooting.(AP Photo/Geert Vanden Wijngaert) Credit: Geert Vanden Wijngaert

A knife-wielding prison inmate stabbed two female police officers in the Belgian city of Liege, stole their service weapons and shot them and a bystander dead in an attack Tuesday that prosecutors fear could be terror-related.

Justice Minister Koen Geens said the assailant, who was later killed by police, was on a two-day leave from prison. Geens described him as a repeat offender who had been incarcerated since 2003 and was due for release in two years.

The attack happened outside a Liege cafe on Tuesday morning. Liege prosecutorsโ€™ spokesman Philippe Dulieu said the man crept up on the two officers from behind carrying a knife and stabbed them several times.

โ€œHe then took their weapons. He used the weapons on the officers, who died,โ€ Dulieu told reporters. The two police handguns had a total of 17 bullets.

Dulieu said the attacker then shot and killed a 22-year-old man in a vehicle that was leaving a parking space outside a nearby high school. He then took two women hostage inside the school.

โ€œLiege police intervened. He came out firing at police, wounding a number of them, notably in the legs. He was shot dead,โ€ the spokesman said.

Police Chief Christian Beaupere said the slain officers were 45-years-old and 53-years-old, the latter the mother of twins. Four other officers were wounded in the attack, one of them seriously with a severed femoral artery.

โ€œThe goal of the attacker was to target the police,โ€ Beaupere said.

Belgian media identified the suspect as Benjamin Herman; a Belgian national born in 1982 who had a criminal record that included theft, assault and drug offenses, state broadcaster RTBF reported. The federal prosecutorโ€™s office declined to comment.

Belgian Prime Minister Charles Michel says Herman was indirectly mentioned in state security reports on radicalization, โ€œin notes that did not primarily target him, but others or other situations.โ€

The prime minister says Herman did not have his name on a list maintained by an anti-terror assessment group.

Asked about reports that Herman had been radicalized in prison, Geens said โ€œat the moment there is very little consistent we can say about that.โ€

โ€œIn any case, he is not a clear-cut case, on the contrary,โ€ Geens said. โ€œHe certainly was not someone who could clearly be qualified as radicalized. Otherwise he would have been known as such by all services.โ€

But a senior official at the federal prosecutorโ€™s office told The Associated Press that โ€œthere are indications it could be a terror attack.โ€

Despite this, Belgiumโ€™s crisis center said it saw no reason to raise the countryโ€™s terror threat alert for now.

Belgiumโ€™s King Philippe, Prime Minister Charles Michel and the countryโ€™s justice and interior ministers traveled to Liege to confer with local officials.

โ€œI want to offer my governmentโ€™s support for the victims, for the victimsโ€™ families,โ€ Michel said.

Yves Stevens of Belgiumโ€™s federal crisis center said that security in Liege is under control, and that there was no reason yet to raise the national terror threat level.

โ€œThere is absolutely no confirmation yet that the incident is terror-related,โ€ Stevens told the AP.

Belgian police and military have been on alert since suicide bombers killed 32 people at the Brussels airport and subway system in 2016.

Itโ€™s not the first time Liege has been hit by a similarly violent attack. In December 2011, a man with a history of weapons and drug offenses left home with hand grenades and guns before he lobbed the grenades into a square filled with Christmas shoppers and fired on those who escaped. Five were killed, including the assailant.