A 15-year-old authorities say stood on the awning of his apartment building in May and opened fire on police officers is competent to stand trial, a D.C. Superior Court judge ruled Tuesday.

The teen underwent months of evaluations and medical treatment since his May 21 arrest. He will remain held ahead of a trial scheduled for Nov. 8.

Prosecutors had charged the teen as a juvenile with 11 counts, including attempted first-degree murder while armed, assault with intent to kill, assault on a police officer and aggravated assault with a dangerous weapon.

The teen was arrested after he allegedly shot a police officer who had responded to an early morning report of a man with a gun in the 700 block of Crittenden Street NE. When uniformed officers arrived, they found the boy on the awning of his apartment with a .38 revolver, authorities said.

One officer, who was wearing a protective vest, was hit three times and briefly hospitalized, police said. Another was grazed.

At a hearing in September, Judge Milton C. Lee ordered additional psychological tests for the teen, who was being reviewed at the Psychiatric Institute of Washington. A subsequent report filed with the court by the institution’s said medication had improved the juvenile’s condition and he could stand trial, the teen’s attorney Antoini Jones said after the hearing.

The Washington Post generally does not usually identify juveniles charged in crimes.