Rio de Janeiro (AFP) - Brazil's right-wing presidential frontrunner Jair Bolsonaro was stabbed and seriously injured while campaigning Thursday, with police saying the suspect claimed to be acting on orders from God.
It was the latest bizarre twist in a presidential race in which the most popular candidate, former president and leftist hero Luiz Inacio Lula da Silva, is trying to run from prison.
The Supreme Court disqualified Lula on Thursday. First round voting is scheduled for October 7.
Bolsonaro underwent surgery for multiple wounds his mid-section and was listed in stable condition after the attack during a walkabout in the southeastern city of Juiz de Fora.
Images shared on social media and Brazilian television showed Bolsonaro being carried on the shoulders of a throng of supporters, before a man lunges at his stomach.
A witness told police the attacker held a knife wrapped up in a shirt and attacked Bolsonaro as the group hoisting him walked by.
The attacker was arrested right away. He was identified as Adelio Bispo de Oliveira, 40, and said to be a member of the left-leaning PSOL party from 2007 to 20014.
After his arrest, Bispo de Oliveira said he was "carrying out a divine mission, a mission from God," said Luis Boundens, head of a union of federal police officers.
Authorities are investigating the suspect's mental health, he added.
Bolsonaro, a former military man and lawmaker, has been criticized for outbursts deemed racist, mysogynist and homophobic.
Bispo de Oliveira acted "for religious reasons, for political reasons, and also because of the prejudice Bolsonaro has always shown when he talks about race, religion and even women," said his lawyer, Pedro Augusto Lima Possa.
On his Facebook page, the attacker recently posted messages criticizing Bolsonaro and supporting the socialist government of President Nicolas Maduro in Venezuela.
Earlier, one of the candidate's sons, Flavio Bolsonaro, had announced on Twitter that his father's wounds were "superficial", but he later wrote: "Unfortunately, it's more serious than we thought."
President Michel Temer quickly condemned the attack and instructed his Minister of Security Raul Jungmann to reinforce security for candidates and conduct "a rigorous investigation," a spokesman for the presidency told AFP.
"It is intolerable to see that in a democratic state it is not possible to have a normal campaign," said Temer.
- Brazil's Trump -
With Lula da Silva ruled out of the election, the latest polls from the Ibope Institute put Bolsonaro in a clear lead with 22 percent compared with 12 percent each for environmentalist Marina Silva and center-left runner Ciro Gomes.
One of his campaign pledges has been to legalize the carrying of weapons in order to combat rising violent crime.
Despite being a long-serving member of Congress, Bolsonaro has successfully presented himself as an outsider, untouched by the corruption scandals engulfing so much of the political elite.
Perhaps the message that carries furthest is Bolsonaro's push for a harder crackdown on crime -- in a country where police are already often engaged in low-level wars against gangs. About 64,000 people die in homicides every year.
Yet he has also courted deep controversy with comments attacking women and sexual minorities, as well as for praising the country's 1964-1985 military dictatorship.
Sometimes described as Brazil's Donald Trump, Bolsonaro has a huge social media following of 8.5 million people.