Officials say they were there to execute an order to commit the man to a mental health facility.
It happened Thursday night just before 10 p.m. in the area of Columbus Avenue and East 4th Street.
Officials say police were called for a mental health check when they encountered a man with a weapon who refused to comply with their orders and he barricaded himself inside an apartment.
Hostage negotiators responded to the scene and worked for hours to de-escalate the situation, officials said.
Police say after the negotiation efforts were not successful and threats of self-harm and harm to officers were made, police obtained a warrant to get into the apartment.
Authorities say the man continued to pose a threat to himself and responding officers and an officer discharged their firearm.
The man was taken to the hospital for treatment but his exact condition was not known.
----------
* More Hudson Valley news
* Send us a news tip
* Download the abc7NY app for breaking news alerts
* Download our connected TV app