CONCORD, N.H. — A man has been convicted in New Hampshire of receiving guns and hand grenades as part of a plot to kill his ex-wife’s husband, a federal judge, and a former Massachusetts attorney general.

A jury on Tuesday found 69-year-old Edward McLarnon, of Malden, Massachusetts, guilty of receiving firearms with intent to commit murder, plus several weapons and explosive charges.

Evidence showed that McLarnon contacted an arms dealer who was actually an undercover FBI agent in 2015. McLarnon paid $700 for the weapons and was taken into custody shortly afterward.

Prosecutors said the evidence further showed McLarnon intended to kill his ex-wife’s husband, U.S. District Judge Dennis Saylor in Boston, and former Massachusetts Attorney General Martha Coakley.

McLarnon will be sentenced on May 10.