Long Beach police used a K-9 and SWAT officers to arrest a man who refused to get out of his car after throwing rocks at people Thursday evening, authorities said.

Police said they got a call saying the man was throwing the rocks and refusing to leave around 6:55 p.m. on Cherry Avenue just south of Carson Street.

When officers got there, the man was inside a parked car, according to LBPD spokeswoman Shaunna Dandoy.

“Further investigation revealed the suspect had a no-bail felony warrant and there was reported to be knives inside of the vehicle,” she said.

Police surrounded the car and called in a K-9 and any SWAT officers who were on duty, Dandoy said.

Eventually, Dandoy said, police sent in the K-9 and officers were able to arrest the man, who was checked out at a hospital before being booked into jail on suspicion of assault with a deadly weapon, harming a K-9, resisting an officer and the outstanding warrant.

Police identified the man as Gustavo Chevarria. Court records show Chevarria is on probation and has previously been convicted of resisting arrest. He’s being held without bail, Dandoy said.

Jeremiah Dobruck is managing editor of the Long Beach Post. Reach him at [email protected] or @jeremiahdobruck on Twitter.