The videos, obtained by a right to know request, show two police officers fatally shooting a knife-wielding man in Bath as he ran toward them along a rural road in July, then firing several more times after he fell at their feet.

The AG released four videos in all -- one from a dashboard camera and three from body cameras.

One video shows Hagan Esty-Lennon, 42, of Canterbury, walking toward officers in a shirt stained with blood from a self-inflicted knife wound and ignoring repeated commands to drop the knife.

He begins to walk away as the officers give chase, guns raised and shouting for him to stop and drop the knife.

As Esty-Lennon nears the officers, it appears as if he begins to stumble before shots are fired. He then falls to the road, and more shots are fired.

The July 6 encounter began when Haverhill police responded to neighboring Bath after a report of a man -- Esty-Lennon -- injured in a car accident who resisted bystanders' efforts to help.

A Superior Court judge ordered the videos from the officers' body cameras to be edited so they didn't show the moment of death and close-ups of Esty-Lennon's motionless body on the ground. But a police cruiser dashboard camera shows from a distance the shooting as it unfolded.

Haverhill Sgt. Wallace Trott, also wearing a body camera, arrives and takes control of the scene moments after the shooting. He speaks first with Collins, who appears distraught. When Trott asks him if he's OK, Collins replies, "Physically, yes."

“18 years I wear that uniform, I pray to God I never had to do what you just did,” Trott says to Collins.

Collins tells him they both fired at Esty-Lennon. "Ryan first, then me." He tells Trott he believes both of them shot Esty-Lennon "because we were within 5 feet of him."

"I saw one entry wound behind his ear," Collins says. "I would have to guess the direction of the entry wound would have been mine."

Collins confirms for Trott that his body camera is still running. "That's good," Trott replies.

Attorney Mark Howard, a partner at Howard & Ruoff who has handled several cases involving body and dash camera video, said Etsy-Lennon was clearly armed and refused officers’ commands.

“Etsy-Lennon, he starts to duck, put his head down, and in my estimation, that’s a clear indication that he’s starting to accelerate towards the officers so they have even less time to respond,” said Howard.

Esty-Lennon's ex-wife fought unsuccessfully to postpone release of the videos, saying they would be harmful for Esty-Lennon's children, ages 7 and 9.

Media outlets argued that the videos should be released so the public could decide if police acted appropriately when they shot Esty-Lennon. The state attorney general's office, the town of Haverhill and its police department also wanted the videos released.

Diane Puckhaber, the lawyer for Esty-Lennon's ex-wife made a second appeal to the state Supreme Court on Friday to postpone release of the videos and a separate audio file, but the court denied her emergency motion.

"I'm disappointed, but more importantly, I'm sad for my client, who was devastated by this," said Puckhaber.