A disturbing video showing a Nashville police officer being attacked by bystanders as he attempted to arrest a suspect has surfaced.

The attack on Metropolitan Nashville police officer Matthew Cammarn is the second in two days on Nashville police in the city's James Cayce public housing development, according to police.

One day earlier, Officer Josh Hausman was stabbed in the hand while patrolling the development.

Cammarn suffered a head injury and was taken to Vanderbilt University Medical Center and released late Tuesday.

Officer Matthew Cammarn (left) of the Metropolitan Nashville Police Department was injured after bystanders attacked him as he attempted to arrest Brian Shannon, 22, (right) after the officer saw him allegedly assault a woman

'After he was assaulted and in great pain, he chased down the suspect that had assaulted that woman so I have nothing but admiration for the way they handled themselves,' Nashville Police Chief Steve Anderson told News Fix.

In the video shot on Tuesday, Cammarn can be seen struggling with Brian Shannon, 22, on the ground of the complex as a crowd gathers around the men.

Cammarn witnessed Shannon allegedly assault a woman and the officer approached the 22-year-old to confront him.

When Cammarn tried to take Shannon into custody, the fight broke out.

In the video of the attack captured on a cellphone camera, officer Cammarn can be seen struggling with Shannon on the ground

He tries to subdue Shannon as a crowd grows around the two men. Eventually with the help of a man in the crowd, Shannon gets the upper hand

The men tussled on the ground as members of the crowd began grabbing the officer.

One man dressed in black pulled on Cammarn's arm as Shannon wrestled with him.

Then man he pushed Cammarn over, helping Shannon get the upper hand and get on top of the officer.

He seems to throw a punch at Cammarn in the video before trying to flee, but the officer tackled him and they continue to scuffle.

Shannon was able to run as other members of the mob kicked Cammarn.

A man dressed in black begins to tug on officer Cammarn's shoulder, trying to help Shannon. He then pushes Cammarn over so Shannon can get away

Eventually Shannon is able to flee, leaving Cammarn on the floor disoriented as the bystanders kick him. Still, the officer stands and chases after the suspect. He was later arrested on several charges including assault on an officer

Once able to get back on his feet, the officer bolted after Shannon.

Shannon stood up and ran to South Sixth Street in Nashville, where he was apprehended, according to a police statement.

Shannon was arrested on suspicion of felony aggravated assault on a police officer, resisting arrest, evading arrest, criminal trespassing, disorderly conduct and drug possession, according to KTLA.

A 17-year-old was also charged with aggravated assault on Cammarn and evading arrest. He was taken into custody at a juvenile detention center.

After the two attacks on the officers this week, Nashville mayor Megan Barry said police 'deserve to be treated with dignity and respect and that did not happen this week'.