“We need all New Yorkers to help to stop these hateful acts,” said Police Commissioner Dermot Shea