WESTCHESTER COUNTY, N.Y. – A pair of Connecticut men are accused of trying to trade an illegal handgun for $500 worth of heroin to undercover officers in Bedford, police said.

Westchester County police said they learned that John McCarthy, 26, of Sherman, and Timothy McLean, 19, of Ridgefield, wanted to buy 50 envelopes of heroin in exchange for a .32-caliber handgun.

Police arranged a meeting with the two suspects in a parking area on Route 172 near Interstate 684 in Bedford Wednesday. McLean and McCarthy arrived around 9:45 a.m. and were arrested when police say they saw the two were in possession of a loaded .32-caliber Beretta and two envelopes of heroin, according to a report.

Both McCarthy and McLean were charged with second-degree criminal possession of a weapon, a felony, and seventh-degree criminal possession of a controlled substance, a misdemeanor.

McCarthy was also charged with unlawful possession of marijuana, a violation. McLean was also charged with possession of a hypodermic instrument, a misdemeanor.

They were arraigned Bedford Town Court Wednesday night and bail was set at $25,000 for McLean and $10,000 for McCarthy.