A Connecticut man threatened to kill a Bronx woman who spurned his romantic advances — warning that he would “shoot” her at the gym where she works, federal prosecutors allege.

Daniel Scott, of Norwich, was arrested Monday at the gym where the woman works, according to the US Attorney’s Office for the District of Connecticut.

The woman had previously notified authorities that Scott left threatening voicemails and sent her ominous text messages after she told him she wasn’t interested in a romantic relationship with the 31-year-old man, prosecutors said.

In one text sent on Monday, Scott promised that he would go to the fitness center where she worked and “shoot tha whole gym up an end all of us,” according to a federal criminal complaint.

Scott, who has two prior federal convictions for distributing narcotics, is currently on federal supervised release. He has been charged with making threatening communications, which carries a maximum sentence of five years in prison, prosecutors said.

Scott was being held Tuesday in New York on domestic violence-related charges. An investigation into the allegations he faces is being handled by the Bureau of Alcohol, Tobacco, Firearms and Explosives — with assistance from the NYPD, according to US Attorney for the District of Connecticut John Durham.