LOWELL -- Nearly seven months after Lowell police responded to a report of "shots fired'' and found a 26-year-old city man had been shot twice, a Tyngsboro man is charged with armed assault to murder in what is alleged to be a drug-deal gone bad.

A dangerousness hearing is scheduled for Thursday in Lowell District Court for 20-year-old Matthew Larkham, of 15 Merrimack Way, who pleaded not guilty on Monday to charges of armed assault to murder, possession of a firearm without a firearms identification card, and possession of ammunition.

In a separate case, Larkham pleaded not guilty to breaking and entering and larceny over $250.

Prosecutors allege that on May 9, Lowell police responded to the area of Fisher and Dalton streets for a report of shots fired. People reported hearing several loud bangs.

When police arrived, there were reports of a car seen fleeing the scene. Police found a trail of blood and shell casings from a 9 mm handgun. Police received a report from the Saints campus of Lowell General Hospital for a person with a gun shot.

Police found the victim had been shot in the arm and the leg. He was expected to survive.

Witnesses who were with the victim at the time of the shooting identified Larkham as the shooter, prosecutors said.

Prosecutors said the victim claimed he had been ripped off by Larkham during a drug deal and wanted some of his money back when Larkham pulled a gun and fired.

Follow Lisa Redmond on Tout and Twitter@lredmond13_lisa.