Brazilian candidate Jair Bolsonaro stabbed during event

National Social Liberal Party presidential candidate Jair Bolsonaro greets supporters as he gets a shoulder ride from a member of his security detail, in Brasilia's Ceilandia neighborhood, Brazil, Wednesday, Sept. 5, 2018. Brazilians go to the polls on October 7 to cast their vote for a new president. (AP Photo/Eraldo Peres)

National Social Liberal Party presidential candidate Jair Bolsonaro flashes thumbs up at passersby in Brasilia's Ceilandia neighborhood, Brazil, Wednesday, Sept. 5, 2018. Brazilians go to the polls on October 7 to cast their vote for a new president. (AP Photo/Eraldo Peres)

Jair Bolsonaro, a leading presidential candidate in Brazil, was stabbed on Thursday during a campaign event, though officials and his son said the injury is not life-threatening.

Numerous videos on social media showed Bolsonaro, whose platform includes cracking down on crime in Latin America's largest nation, being stabbed with a knife to the lower part of his stomach. The candidate was seen flinching after the attack before going out of view.

Police spokesman Flavio Santiago confirmed to The Associated Press that Bolsonaro had been stabbed and that his attacker was arrested.

Santiago said Bolsonaro was taken to a hospital in Juiz de Fora, a city about 125 miles (200 kilometers) north of Rio de Janeiro, and was in good condition.

Bolsonaro's son, Flavio Bolsonaro posted on Twitter that his father is doing fine.

The wound "was superficial and he is OK," wrote Flavio, who also asked for prayers for the family.

A statement from federal police said the candidate had body guards. In the videos, Bolsonaro does not appear to be wearing a protective vest.

Bolsonaro, a former Army captain, is second in the polls to ex-President Luiz Inacio Lula da Silva, who has been barred from running but continues to appeal.

Despite being a congressman since 1991, Bolsonaro is running as an outsider ready to upend the establishment.

While he has a strong following, Bolsonaro is also a deeply polarizing figure. He has been fined, and even faced charges, for derogatory statements toward women, blacks and gays.

He also speaks nostalgically about the country's 1964-1985 military dictatorship and has promised to fill his government with current and former military leaders.

Other candidates quickly denounced the attack.

"Politics is done by dialogue and convincing, never with hate," tweeted Gerado Alckmin, former governor of Sao Paulo who has focused negative ads on Bolsonaro.

Fernando Haddad, who is expected to take da Silva's place on the Workers' Party's ticket, called the attack "absurd and regrettable."