Updated

A man was arrested Wednesday night after shoving a pie in the face of Sacramento Mayor Kevin Johnson at a charity dinner.

Sean Thompson, 32, was arrested on suspicion of assaulting a public official, which is a felony, the Sacramento Police Department said. An official said Johnson, a former NBA star, didn’t take the act lightly.

The mayor had given a speech at the Seeds of HOPE dinner at Sacramento Charter High School before the man came up, pulled the pie from a bag, grabbed Johnson and shoved it into his face, the mayor’s Chief of Staff Crystal Staff said. She said the mayor defended himself against the man, but wouldn’t elaborate.

According to the East Bay Express, Johnson tackled Thompson and “repeatedly” punched him in the face landing “five to 10” blows. A witness told the East Bay Express that the protester was hit multiple times.

The mayor tweeted that he's "doing fine" and added, "Thank you to Sac PD for being there."

Strait emphasized that it was a genuinely serious and scary situation and there was nothing funny about it, especially because no one including the mayor could tell immediately that it was a pie the man was holding.

"The mayor was assaulted. I was standing right there and I'm still pretty shaken up," Strait said, speaking some three hours after it happened.

Thompson was treated for a minor injury before he was booked into jail. Both police and Strait said Thompson was previously unknown to the mayor and his staff.

After he cleaned up, Johnson spoke again to the audience to calm nerves at the event, which was held in the school's garden and featured many of the city's top restaurateurs.

Johnson, who had a long career as an NBA All-Star with the Phoenix Suns and a brief stint with the Cleveland Cavaliers before becoming mayor, has about two months left as mayor after deciding not to seek a third term.

The 50-year-old is married to Michelle Rhee, a former chancellor of Washington, D.C., schools, who was at the event Wednesday night.

Johnson's signature achievement in office was getting a $500 million arena built for the city's NBA team the Sacramento Kings.

His final two years in office were marked by the re-emergence of a decades-old claim of sexual abuse from a woman who was a teenager at the time, when Johnson played for the Suns. The Phoenix Police Department investigated but did not file charges.

Johnson has both denied the allegations and denied that they had anything to do with his decision to leave office.

The Associated Press contributed to this report.