ROCHESTER, N.Y. (WROC) — A teenager has been shot and five taken into custody following an incident in Beechwood Monday afternoon, police officials say.

U.S. Marshal for the Western District of New York Charles Salina described it as a “right place, right time” situation.

Members of the U.S. Marshal’s Task Force were in the neighborhood on an unrelated investigation when they say they heard shots fired at approximately 3:45 p.m.

Several Task Force officers say they saw a vehicle fleeing the area at a high speed, which they later discovered to be stolen yesterday from Pittsford. They followed the vehicle, which crashed at Woodman Park and Lancraft Street. All five occupants of the vehicle exited the vehicle and fled.

Through a joint effort from the Marshal’s Task Force, New York State Police, and Rochester police, all five were taken into custody at approximately 5 p.m.

During the investigation, officials discovered that a 14-year-old Rochester resident was shot in the leg on nearby Rosewood Terrace, RPD Captain Adam Raidens said.

His injuries were deemed not life-threatening, and he is currently being treated in Strong Memorial Hospital, he said.

“We’ve beefed up our presence here in the city, and we’re out here all different times of the evening, so, right place, right time, great cops,” Salina said, commending the quick response of officers.

Salina said that RPD will be handling the investigation moving forward.