Police have arrested a 19-year-old man they say fired a BB pellet into the back of a police officer on Mayor Bill de Blasio’s security detail at Gracie Mansion on Sunday evening.

Michael Veritsky, 19, was arrested Monday on charges of assault on a police officer with a deadly weapon, reckless endangerment, criminal possession of a forged instrument, criminal possession of a weapon and criminal mischief.  

RELATED: Cop on Bill de Blasio’s security detail hit with pellet outside of Gracie Mansion 

De Blasio was not home during the alleged attack, which happened around 7:15 p.m., police said. 

The officer was hit in the back, and she was treated for minor injuries at Lenox Hill Hospital and released.

RELATED: De Blasio bluntly denies smoking pot at Gracie Mansion 

The NYPD said there have been two recent incidents of pellets being shot at windows in the area.  

Police also questioned a 17-year-old girl who was with Vertisky, sources told the Daily News

A SWAT team entered nearby 170 East End Avenue, where the shots were apparently fired, and a man was heard yelling “F-- de Blasio,” according to the Daily News. 

RELATED: Asbestos found in Gracie Mansion roof