A New Jersey police officer has cut a deal to keep his job after slapping a prankster wearing a bunny suit.