A man has been accused by police of striking a patrol horse in the head and then trying to attack officers early Saturday in downtown Austin, court documents say.

The man, identified by police as 20-year-old Luis Rios Flores, was seen urinating in public in the 500 block of Neches near Sixth Street and was asked to stop, but did not and began to curse at the officers, according to an arrest affidavit.

Flores eventually stopped urinating when mounted officers arrived on the scene, the affidavit said. Flores then struck a police horse in the head with his hand, which police said had caused the mounted officer to momentarily lose control of the horse.

When officers closed in on Flores to detain him, he swung at a second police horse but punched an officer in the hand, struck another officer in the thigh and hit a third horse at the scene, the affidavit said.

He was booked into the Travis County Jail for interference with a police service animal, a Class A misdemeanor, and resisting arrest. Flores was no longer in the jail Sunday, according to jail records.