Cop shot with BB gun in Brooklyn, latest in series of attack