By Dana Kozlov

CHICAGO (CBS) — Over prosecutors’ objections, a 14-year-old boy charged with shooting two men on a CTA platform earlier this week has been released to his parents after a bond hearing.

A 34-year-old man and a 44-year-old man were wounded in the shooting shortly after 4 p.m. Monday.

After a court appearance Friday, the 14-year-old boy, charged with attempted murder and aggravated battery for the shooting at the Argyle stop on the Red Line, was released by a judge with no supervision.

“At today’s detention hearing, we requested the minor be held in custody,” the Cook County State’s Attorney’s Office said in a statement. “The court made the finding that under the law the minor must be released because he was held in custody for 42 hours …  and not brought before a judicial officer within 24 hours.”

A spokesperson for Cook County State’s Attorney Kim Foxx said prosecutors objected and asked for electronic monitoring, but the judge denied it.

Police disputed that they held the suspect too long and said they turned him over to juvenile court within the legal time.

Sources also told CBS 2’s Dana Kozlov that the alleged shooter has a lengthy record, and a police source said he has an outstanding arrest warrant downstate, which should have kept the teen in custody.

The state’s attorney’s spokesperson said prosecutors had no knowledge of an outstanding warrant, so it wasn’t brought up.

A staffer at the judge’s office said she could not discuss the case at all.

Police released surveillance images of two suspects in the shooting on Wednesday and arrested two people on Thursday.

The second person was released without charges.