LEBANON — Police say a Massachusetts man carrying 90 bags of heroin and a loaded gun ran from officers during a raid on Friday.

Jonathan Martinez, 23, from Springfield, Mass., ran out a basement door when officers from the Lebanon Police Department and the New Hampshire Attorney General's Drug Task Force arrived at 15 Renihan Meadows on Friday to execute a search warrant, according to police.

Police said officers inside the home found several people, but the Lebanon officers on the perimeter outside the house saw Martinez trying to get out of the basement. Police said Martinez was carrying a loaded pistol when he saw the officers outside and then tried to get back into the house.

Martinez was apprehended by Lebanon police. He was found to have $7,000 in cash, 90 bags of heroin, and a small amount of crack cocaine, according to police. He faces two felony charges: possession of a controlled drug and felonious use of a firearm. He also faces a misdemeanor charge of resisting arrest.

Police also arrested Ceagin Darling, 22, of Lebanon during the execution of the search warrant. Darling is charged with six felony counts for allegedly selling heroin and crack cocaine. Another six ounces of marijuana was also seized from the home, according to police.