CHICAGO — A 16-year-old boy who was among three people shot by police during a chase on the Eisenhower and Dan Ryan expressways Tuesday has been charged with attempted murder. Two adult men were also charged with crimes after someone allegedly pointed a gun at officers in pursuit, police said.

The three culprits were planning to rob a freight car, Cook County State's Attorney Erin Antonietti said. But before they could attempt the heist, the youngest of the three allegedly tried to rob someone at gunpoint in the 500 block of North Hamlin Street Tuesday morning shortly after 11 a.m.

The 16-year-old's plan fell apart when friends of the man he pulled the gun on started shooting at him, prosecutors said.

When officers arrived at a gunfight about 11:15 a.m. at Ferdinand Street and Hamlin Avenue in Humboldt Park, someone began shooting at them, said Pat Camden, spokesman for the Fraternal Order of Police.

"All of a sudden the shootout is shooting at them," Camden said Tuesday.

The teen ran with cops already in pursuit.

When one of the officers pulled his marked Tahoe into the teen's path, he opened fire, prosecutors said. The officer dove behind the SUV to shield himself from the shots.

Just then, the teen's two cohorts, Donald Harris, 24, and Barry Hayes, 20, pulled up in a stolen white Kia, prosecutors said. The teen jumped in the back, and the suspects fled with police in pursuit.

The Kia shot down side street at 60 mph until it reached the Eisenhower Expy., and then to the Dan Ryan, prosecutors said.

The teen and the two men sped south, firing shots at the police on at least two occasions, prosecutors said. The cops shot back.

Tuesday's chase ended near U.S. Cellular Field when the Kia crashed into a snowbank.

One of the three allegedly got out of the car and pointed the gun at cops, who shot shot back, authorities said. All three people in the Kia were wounded.

Hayes remained hospitalized with gunshot wounds Thursday when Harris, who had no visible injuries, stood before a judge in Cook County bond court.

The 16-year-old, whose case is pending in the juvenile system, was not identified. His condition is unknown.

Harris, of the 6600 block of South Damen Avenue, was charged with criminal trespass to a vehicle and aggravated possession of a stolen motor vehicle.

Hayes, of the 400 block of West 58th Street, was charged with aggravated assault on a police officer with a firearm, possession of a stolen motor vehicle, aggravated fleeing causing bodily injury and possessing a firearm without a valid firearm owner identification card.

The teen was charged with first-degree attempted murder, criminal trespass to a vehicle, aggravated discharge of a firearm, unlawful use of a weapon and issuance of warrant.