A man was fatally shot by sheriff's deputies after opening fire and wounding two deputies conducting a federal search warrant at a house in upstate New York on Tuesday, authorities said.

One of the two Saratoga County Sheriff's deputies was undergoing emergency leg surgery and the other was treated at a hospital and released, Sheriff Michael Zurlo said. Anthony Zaremski, 23, died at a hospital, he said.

TRUMP TO STAND TRIAL IN MARCH 2024 FOR ALLEGED HUSH MONEY PAYMENTS

NYC, Washington Heights, Queens, Long Island

Sheriff's deputies fatally shot a man who opened fire while police were conducting a search of a New York home.  (Fox News)

CLICK HERE TO GET THE FOX NEWS APP

Authorities were conducting the search warrant in connection to a wide-ranging narcotics investigation being conducted by the U.S. Drug Enforcement Administration, Zurlo said. They confiscated multiple kilograms of cocaine, about 50 handguns and rifles, and "hundreds of thousands" of fentanyl pills from three other sites connected to the investigation, he said.