Three students were wounded in a shooting that occurred Wednesday afternoon just after their Pittsburg high school got out for the day.

According to CBS Pittsburgh, the three victims were walking to a car that was located about a block away from Brashear High School on Wednesday when shots suddenly rang out.

Three men dressed in all black had emerged from the woods and opened fire on the teens before they retreated into the woods again and disappeared, reports the New York Daily News.

One of the victims was shot in the leg, one in the shoulder, and the last was grazed in the head.

Two of the victims are 17 years old and the third is 16 years old. Police reported that the teens were uncooperative in their investigation.

A fourth student who goes to the same school was walking with the teens but was uninjured in the shooting.

Authorities believe that the shooting came in the wake of an assault and robbery that occurred inside the high school last month which put the school on lockdown for a week, reports the Pittsburgh Post Gazette. The three victims of Wednesday’s shooting were suspects and the suspected gunman, 16-year-old Anjohnito "AJ" Willet was the victim.

Police believe Willet was seeking revenge on the other teens, which caused him to carry out Wednesday’s shooting. The Gazette reports that two others may have been involved in the shooting along with Willet, according to witnesses.

Early reports also stated that six people had been questioned in relation to the shooting before Willet was arrested as a suspect.

The investigation is ongoing.