(CNN) Dutch authorities have caught the man suspected of opening fire on a tram in the Dutch city of Utrecht, killing three people and injuring five others.

Gokmen Tanis, 37, who has had previous run-ins with law enforcement, was arrested on Monday night, police said.

Dutch authorities are considering "a possible terrorist motive" for the incident, which happened in 24 October Square at 10:45 a.m. (5:45 a.m ET) Monday. Utrecht Mayor Jan van Zanen said the motive behind the attack is "still unclear."

A second suspect has also been taken into custody, van Zanen said, adding that it's not clear what his involvement was in the shooting.

CCTV supplied by Utrecht police in the Netherlands investigating a shooting incident.

At a news conference, Rutger Jeuken from the public prosecution service said authorities are considering that the attack had terrorist motives, and maybe others.

Read More