The two officers had been following up on an earlier investigation, police said. According to sources, the two had been investigating a gang-related shooting that left a 15-year-old boy wounded in the left leg about 6:35 p.m. Tuesday. That shooting took place at 18th and Halsted streets in the Pilsen neighborhood, about 3½ miles from where the officers were shot.