The NYPD has announced that they arrested and charged the suspect they say is responsible for shooting a tourist at a store in Times Square Thursday evening.

A 15-year-old Venezuelan migrant who was staying at a temporary city shelter in Manhattan after entering the country in September was arrested in Yonkers Friday afternoon, according to the NYPD.

The migrant was charged with attempted murder, assault, attempted assault and criminal possession of a weapon.

Police said the teenager, along with two others, was attempting to shoplift a jacket from JD Sports at 1466 Broadway around 7 p.m. Thursday. After the store's loss prevention officer took the jacket back from the teen, police said he then pulled out a gun and fired in her direction.

The bullet struck the left knee of a 38-year-old female tourist from Brazil as she waited in line to buy shoes. She was taken to NYC Health + Hospitals/Bellevue and later released with a non-life threatening injury.

Officers said one of the suspects was apprehended immediately after all three suspects fled the store. As an officer attempted to chase the 15-year-old, police said the teen fired twice into the busy streets around Times Square.

"As the shooter turns and apparently fires at our uniformed officer, not once, but on two different occasions, the second time while running, shooting across his body behind himself, something so potentially dangerous," NYPD Assistant Chief Jason Savino said at a press conference Friday evening.

The officer chasing the 15-year-old was not struck and did not return fire.

Over the course of the investigation, police said they spoke to hundreds of individuals and obtained "pristine" photos of the suspect, which led to his arrest.

All three suspects have been arrested. Police said they all go to school together.