A New York City police officer was shot in the arm Thursday afternoon while responding to a shooting in the Brownsville neighborhood of Brooklyn.