NASHUA -- A Hillsborough County Superior Court jury on Friday convicted a Lowell, Mass., man for selling the fentanyl that caused the June 2017 death of Nicholas Wells, 25, of Pelham.

William Luna, 45, was convicted on four felony drug charges following a trial that began Monday.

Luna will be sentenced Feb. 13, state prosecutors said.

The conviction for selling a controlled drug with a resulting death carries a potential life imprisonment term with the possibility of parole.

The other convictions are also Class A felonies that can carry up to 20-to-40-year prison terms along with fines.

State prosecutors said Luna sold the fentanyl to Wells, whom Pelham police officials found dead at his home from a drug overdose on June 20, 2017.

Investigators believed Luna was the person who had traveled from Massachusetts to sell fentanyl a few hours before Wells died.

Luna was arrested later that afternoon at the Family Dollar Store in Pelham with the intention of selling more drugs to Wells, unaware that Wells had already overdosed.

At the time of that arrest, Luna had both quantities of fentanyl and cocaine.

Assistant Attorney Generals Jesse O’Neill and Heather Cherniske prosecuted this case.