Officers were patrolling when a man with a gun opened fire on them outside a deli on Bainbridge Ave. in the Fordham section of the Bronx, according to police.