Graphic Content Warning: Video shows police officer shooting dog in broad daylight.

A video went viral that depicts a Hawthorne, Calif., man’s dog being shot by a police officer as he was being taken into custody for allegedly causing a disturbance at a crime scene on Sunday June 30.

Before being taken into custody, Leon Rosby returned his dog, Max, to the car. While Rosby was in custody, the Rottweiler jumped out of the car and jumped at one of the officers after they attempted to grab his leash. Immediately after, an officer opened fire and shot the dog several times.

Several bystanders, including Gabriel Martinez, caught the incident on their cellphones, including this video that went viral.

Rosby, the owner of the dog killed by Hawthorne police spoke on camera about the incident in another video captured by the Daily Breeze.

Hawthorne police Lt. Scott Swain spoke to the Daily Breeze about the incident, explaining that police detained Rosby for the loud music playing from his car, which was distracting the officers.

"It's interfering with what they are able to hear. It's not just a party call. It's an armed robbery call. The officers need to hear what's going on with the people being called out of the residence. That music in his car is bleeding over and it's distracting them,” said Swain to the Daily Breeze.

According to public court documents, Rosby had made a prior complaint about Hawthorne Police Department using excessive force and racial profiling after being detained during an incident last year. You can read the complaint in the court filing below.