NORFOLK, Va. (WAVY) — A Norfolk 11-year-old accused in a shooting that left a teen critically injured appeared before a judge today.

During a hearing, the judge ordered that the child remain in juvenile detention while undergoing pretrial services. Those services include a psychological evaluation to determine if he has the capacity to stand trial. Commonwealth’s Attorney Ramin Fatehi said that the services are guardrails to determine if the case has criminal intent under Virginia law.

“Has his brain developed to the point where someone can explain to him what is a judge? What is a prosecutor? And what his role is if he faces a criminal charge,” Fatehi said of the process. “The degree to which a child is responsible for committing acts, even serious acts, even acts of violence, is different from adults.”

The 11-year-old was taken into custody over the weekend following a shooting in the 400 block of Nicholson Street that send a 17-year-old to a local hospital with life-threatening injuries.

The 11-year-old has been charged with malicious wounding, use of a firearm and possession of a firearm by a juvenile in connection with the shooting.

When a juvenile is detained while facing charges, a hearing must take place every 21 days. While a child as young as 11 years old may be charged in the juvenile court system, Virginia law prevents children under the age of 14 from being tried as adults.

A trial is set for March 28.

Check WAVY.com for the latest updates.