Updated

A 14-year-old boy accused of impersonating a Chicago police officer has been released from custody.

Cook County Judge Andrew Berman approved a request Friday from the teenager's attorney to have him released from juvenile detention. The boy now must wear an electronic monitoring device.

The teen was discovered in a uniform on Jan. 24 after entering a South Side police station through an unlocked back door. He had posed as an officer for hours earlier in the day, including time in a patrol car with another officer.

The incident prompted an investigation that found at least five police officers broke department rules that day.

The boy has pleaded not guilty to impersonating an officer.