LOUISVILLE, Ky. (WDRB) -- A Louisville man who was being taken into custody in a Jefferson District courtroom Monday morning didn't want to go and had to be tased by sheriff's deputies, according to an arrest report.

Authorities say it happened just after 10:30 a.m. Monday.

Court records indicate 30-year-old Derrick Wright appeared in Jefferson District courtroom 104 to answer to a traffic charge of speeding 22 miles over the speed limit. But while he was there, it was discovered that there was a warrant for his arrest in connection with a domestic violence charge. Sheriff's deputies were then instructed to take him into custody.

Courtroom video shows what happened next. As deputies were attempting to move Wright to the hold area, he can be seen trying to break free and run. One of the deputies grabs hold of Wright's sweatshirt and takes him to the ground in the observer's galley. At that point, Wright allegedly hit him in the face with his elbow, damaging the deputy's glasses, worth approximately $500, according to the arrest report.

"Hold your arms out!" a deputy yells in the video.

"Quit fighting! Quit fighting!" a deputy shouted.

While on the ground, authorities say Wright continued to fight, causing a deputy to tase him in his lower back.

"Taser! Taser!" a deputy yells.

At that point, Wright can be heard screaming. "I’m not fighting!"

"Are we done? Are we done?" a deputy shouted.

At that point, the sheriff's office says Wright stopped struggling and was taken into custody.

"We're gonna get you up, and you're gonna walk back there real nice, okay?" a deputy told him. "We're gonna play good today, okay? We're gonna play good, alright? Because if you don't, I'm gonna light your *** up!"

A few minutes later, Wright can be heard arguing with deputies off-camera.

"So it's alright to beat somebody up and whatnot in a public place?" he asked. "I wasn't even moving. There's five of you all versus one person."

Wright can be heard demanding to call his mother.

"What I run for? Because I came to court for traffic, not for somebody sitting out there to arrest me," he said a moment later.

"Didn't nobody tell me I had a warrant until I came to court, so you all gotta beat me up and put blood all over my face and whatnot?" he added. "Yeah, it took five of you all, and I'm only this one small person -- this dude right here is bigger than me!"

Wright was led out of the courtroom a few moments later. His actions "caused alarm to people in the courtroom," according to the arrest report.

One of the deputies suffered a rug burn to his left knee as a result of the struggle, according to the arrest report.

Wright was arrested and charged with third-degree assault, resisting arrest, second-degree criminal mischief and second-degree disorderly conduct. He is currently being held in Louisville Metro Corrections.

Copyright 2017 WDRB News. All rights reserved.