A video of a man kicking a can of tear gas back at Phoenix police officers, then falling to the ground after police shot him with a pepper ball, went viral following Tuesday's protest against President Donald Trump's visit.

That same man, 29-year-old Joshua Stuart Cobin of Scottsdale, was arrested on Thursday, said Phoenix police Sgt. Jonathan Howard.

He is facing three counts of aggravated assault on a police officer and one count of unlawful assembly, Howard said.

"Many of you will recognize this man as he has posted images and admissions to his crime on social and local media outlets,'' Howard said in a statement released late Thursday.

The video showed a man wearing a gas mask kicking a canister that is spraying pepper gas back toward police during the melee that broke out after Trump's appearance at the Phoenix Convention Center.

Within seconds, a puff of smoke can be seen striking below the man's belt line, immediately causing him to fall to the ground. As he writhes in pain, a bystander runs to help him off and bring him to safety.

In a Reddit Phoenix thread, a user by the name of gotyourqueen opened up as the "guy in the blue shorts who got shot in the crotch" on Wednesday. He wrote that he is not "antifa" — a reference to anti-fascist action groups — and does not support any violence toward police or Trump supporters.

"What I witnessed was a peaceful protest until 8:30," he wrote of Tuesday night's events. "The crowd was going to march to the capitol down Monroe St. As were were leaving I saw one character throw a water bottle at police..there were also a couple medium sized rocks on the ground. That seemed to be the reason for the tear gas."

Efforts to reach Cobin for comment were not successful.

Cobin's is the sixth arrest in connection with the night of the peaceful protest that quickly turned chaotic following the end of Trump's speech.

The clash between protesters and police has spurred a call by the American Civil Liberties Union of Arizona for an investigation into whether Phoenix police officers protected the First Amendment rights of the protesters.

Phoenix Police Chief Jeri Williams said to The Arizona Republic on Thursday that officers responded properly.

“As a matter of fact, we restrained from using more force,” she said to The Republic. “We didn’t rush the line, we gave people the opportunity to make the decision to (depart) and go home and create a peaceful scenario and situation.”

Others arrested include 18-year-old Daireus Latravus Strokes, 25-year-old Pamela Ann Robertson, 34-year old Derrick Gilbert Pachecho and a juvenile, police said.

Also, an adult male was arrested in the area on an unrelated misdemeanor warrant.

Strokes was arrested and booked on three counts of aggravated assault on police, three counts of disorderly conduct, one count of resisting arrest and three counts of threatening and intimidating.

Robertson was arrested and booked on one count of aggravated assault on police.

Pacheco is facing a charge of disorderly conduct.

The juvenile was arrested on suspicion of criminal damage.

READ MORE:

Phoenix police chief: Officers acted properly at Trump rally protests

Trump protests in Phoenix: What caused the night to unravel?

Street medics question Phoenix police handling of demonstrators after Trump rally

Tempe councilman says police gassed without warning outside Trump rally

After chaos at Trump event, Arizona legislator wants to ban masks for protesters

Arizona man loses job after post about driving through anti-Trump protesters