Santa Barbara police arrested a man Wednesday who they say struggled with an officer and tried to pull the officer's gun out of its holster.
Police say they were called to Santa Barbara City College for a report of a man who was repeatedly trespassing and had a history of being aggressive toward staff members at the college.
Police say the first time officers contacted Joshua James Segura, 28, he ran away and they did not follow him, but a little more than an hour after the original report, officers were called to the college again.
This time, police say an officer attempted to detain Segura but he again tried to run away and the officer gave chase.
The police department says the officer caught up to Segura and pushed him to the ground and as the two struggled, Segura grabbed the officer's gun and tried to remove it from its holster.
Police say the officer was able to prevent Segura from taking the gun and eventually took him into custody.
Segura was booked into the Santa Barbara County Jail on charges including battery on a peace officer and resisting arrest by force. Police say he was already on probation for previous convictions.
The officer reportedly suffered a lower body injury during the struggle and was not immediately able to return to work.