A man has been arrested for threatening New York state Sen. Lea Webb. 

State Police say James Crosby, 49, of Binghamton, posted a threatening comment on Facebook in response to a news story featuring Webb at a Juneteenth event.

During the investigation, troopers found that Crosby illegally owned a rifle despite a prior felony conviction. 

He was charged with making a terroristic threat as a hate crime and criminal possession of a weapon.

Webb represents New York’s 52nd state Senate District, which encompasses Cortland and Tompkins counties, as well as parts of Broome County.