An NYPD officer was shot with a BB gun in Brooklyn Sunday night, the latest in a series of BB attacks targeting law enforcement in New York City.

The officer was taken to Kings County Hospital where he was treated for minor lacerations and was expected to recover, law enforcement sources told the New York Post.

The BB gun shooting of the officer in Bedford-Stuyvesant on Sunday came just one day after an NYPD housing officer was shot in the neck with a BB in Brownsville.

A city traffic agent was also shot with BB pellets while writing a ticket in Far Rockaway on Friday in an incident where police said they arrested a suspect and recovered a gun.