An NYPD officer was shot three times when police exchanged gunfire with a man who opened fire on them late Wednesday night in the Bedford-Stuyvesant