A Bronx teenager was arrested after he pointed a gun at an NYPD police officer during a pursuit late Saturday night -- less than 12 hours after two officers were shot and killed assassination-style in Brooklyn, the NYPD said Sunday morning.

No officers were injured in the Bronx incident, police said. Raymond Leonardo, 17, is facing felony charges of criminal possession of a weapon, two counts of menacing a police officer and reckless endangerment, police said.

Two 40th Precinct officers assigned to a violence reduction foot post at 140th Street and Cypress Avenue heard "five to six gunshots" about 10:50 p.m., police said. The officers broadcast a "shots fired" transmission over their department radio and began to search the area, police said.

Another pair of 40th Precinct uniformed officers responded to the scene and a motorist told them the shooter was across the street. When the officers attempted to approach Leonardo, he began running, police said, and hid behind a box truck to elude the cops, police said.

An officer got out of his vehicle and ordered Leonardo to drop the firearm, but instead Leonardo "turned towards the officer while pointing his weapon, a .357 Smith and Wesson revolver, at the officer, who had taken cover behind a parked vehicle," police said.

A second officer approached Leonardo, who then dropped his gun and was taken into custody, police said.

The arrest comes as the NYPD is on high alert following Saturday's ambush killing of Officers Wen Jian Liu, 32, and Rafael Ramos, 40, who were shot at point-blank range as they sat in their marked police car near Myrtle and Tompkins avenues in Brooklyn's Bedford-Stuyvesant section at 2:47 p.m., police said.

Sign up to get the latest updates Get Newsday's Breaking News alerts in your inbox. By clicking Sign up, you agree to our privacy policy.

The gunman, Ismaaiyl Brinsley, 28, traveled to New York to carry out his plot after shooting his ex-girlfriend near Baltimore. In online postings, Brinsely said he wanted to kill police offices to avenge the controversial deaths of two black men at police hands in Ferguson, Missouri, and Staten Island.