Actor Shia LaBeouf and two women were jaywalking against the signal and obstructing traffic on Sixth Street in Austin, Texas, when he was arrested Friday night, an arrest affidavit says.

Around 7:30 p.m. Friday an Austin police officer heading westbound in his patrol car on East Sixth Street was waiting for the stoplight to change at the intersection with San Jacinto Boulevard. When the light turned green, the officer saw a man later identified as LaBeouf, 29, and two women crossing the intersection together in front of him against the signal. As the group crossed, LaBeouf raised his hand to the drivers in the three lanes of traffic, including the officer, as if directing them to stop, the affidavit says.

The officer then activated his emergency lights and pulled over to conduct a probable cause stop. According to the affidavit, LaBeouf took several steps backward and turned away from the two women as the officer got out of his car, who then ordered him to stop.

The officer approached LaBeouf and could smell a strong odor of alcohol, and noticed that “LaBeouf’s speech was slurred and thick-tongued and his eyes were glassy and dilated,” the affidavit says.

According to the document, LaBeouf told the officer that he “typically walks away because police had killed a friend of his.” But then he “became increasingly confrontational, aggravated, profane and verbally aggressive” with the officer during the encounter and called him a “silly man” three times, the affidavit says.

LaBeouf then began “puffing his chest and walking in an aggressive and threatening manner” at a man who was recording the encounter on video, the affidavit says, which prompted the officer to intervene. At that point, LaBeouf continued his tirade towards the officer and got within two feet of the officer’s face, telling him to “do whatever the (expletive) you gotta do,” the affidavit says.

The officer “determined that LaBeouf was a danger to himself and others” because of his actions and arrested LaBeouf on the misdemeanor charge of public intoxication. LaBeouf was booked into Travis County Jail on Friday night, but was later released.