Both victims were taken to hospital and are in stable condition, the NYPD confirmed