A New York City teen was shot two blocks from a high school on the Upper West Side of Manhattan on Tuesday morning, and police say they apprehended the suspected gunman attempting to escape in a yellow taxi.

Officers responded to a report of a shooting just before 10 a.m. at West 68th Street and Amsterdam Avenue, police said.

A group of four to five males had gotten into a physical dispute when a 19-year-old male drew a firearm and shot the 17-year-old male in his abdomen multiple times, NYPD officials told reporters during a press conference.

The wounded teen then ran two blocks to his high school, where 911 was called. Police said the shooting did not occur within the high school.

PHILADELPHIA TEEN SHOT 10 TIMES IN BROAD DAYLIGHT, BY AS MANY AS 3 SHOOTERS, DIES

NYPD officer walking near scene of shooting

Police said the shooting happened on West 68th Street and Amsterdam Avenue just before 10 a.m. Tuesday. (FNTV)

Medical personnel rushed the teen to New York-Presbyterian Weill Cornell Medical Center in stable condition, according to police. The teen was out of surgery Tuesday afternoon and detectives were planning to speak with him.

Police said the suspected shooter was apprehended in a yellow taxi cab about a block away from the shooting.

The suspect, age 19, has three prior arrests, including two for narcotic sales in 2023 and an indictment for armed robbery with a firearm in 2021. Police said he was out on bail for the latter incident.

police officers taping off scene of shooting

Police said a 17-year-old male was shot in the abdomen. He was rushed to a nearby hospital in stable condition. (FNTV)

ONE DEAD, 3 INJURED IN BROOKLYN SHOOTING, NYPD STILL SEARCHING FOR SUSPECT

The shooting reportedly happened near Martin Luther King High School, one of a few high schools located within the same block.

CLICK TO GET THE FOX NEWS APP

Mayor Eric Adams is expected to visit the area later Tuesday, WPIX-TV reported.