Police have said a "lone shooter" has been "neutralised" after an officer was and two civilians were reportedly shot in New York City.