The prosecution's statements come in the backdrop of reports claiming that personal enmity was the reason behind the shooting on the tram.
The head of the Dutch national counter-terrorism service, Pieter-Jaap Aalbersberg, confirmed "the arrest of the main suspect for the shooting".
The shooting took place at 10.45 a.m. in 24 Oktoberplein, a busy junction underneath a highway bridge. At least 3 people have been confirmed dead.
The Netherlands has been largely spared the kind of attacks which have rocked its closest European neighbours in the past few years, but there has been a series of recent scares.