(CNN) Brazil's far-right presidential front-runner Jair Bolsonaro is recovering in a hospital after being stabbed during a rally while campaigning weeks ahead of elections.

"I'm fine and recovering!" Bolsonaro tweeted Friday from his hospital bed.

The candidate's son said Bolsonaro will likely be unable to resume campaigning ahead of October's vote, but that supporters can.

An assailant stabbed Bolsonaro on Thursday as he was led through a crowd on the shoulders of supporters in Juiz de Fora, a city in the southern state of Minas Gerais. Video shows Bolsonaro grimacing in pain before being carried away.

Police arrested Adelio Bispo de Oliveira, 40, who has been charged in connection with the attack, according to state news agency Agencia Brasil. The suspect's Facebook page featured posts railing against Bolsonaro, Agencia Brasil quoted police as saying.

Jair Bolsonaro is carried away after being stabbed during a campaign rally in Juiz de Fora, Brazil.

Known to many of his countrymen as the " Brazilian Trump, " Bolsonaro, 63, was taken to a local hospital, where medical officials and his family said he was in a stable condition.

The attack on Bolsonaro, notorious for making racist, sexist and homophobic remarks, has ratcheted up tensions weeks ahead of the elections.

A pro-gun congressman since 1991, he has cast himself as a political outsider, a firebrand attracting millions of supporters who believe he can shake up Brazil's corruption-marred political class.

Recent polls estimate that Bolsonaro is the favorite to win the election, with a 10% lead over his nearest rival, former President Luiz Inacio Lula da Silva

However, doctors at the Santa Casa hospital, where Bolsonaro was taken for surgery, said his wounds may interrupt his campaigning as his recovery may take days or weeks.

His family initially thought his wounds were superficial, but later members said they had feared for his life.

"Unfortunately, it was more serious than we hoped," his son Flavio Bolsonaro tweeted. "The wound reached part of his liver, lung and intestine. He lost a lot of blood, reaching the hospital...almost dead...his condition now seems stable. Please pray!"

Another son, Eduardo Bolsonaro, said his father could have died if the hospital had not been nearby.

Jair Bolsonaro está mais forte do que nunca e pronto para ser eleito Presidente do Brasil no 1° TURNO!

Deus acaba de nos dar mais um sinal de que o bem vencerá o mal!

Obrigado a todos que nos deram força nesse momento muito difícil!

Brasil acima de tudo, Deus acima de todos! pic.twitter.com/iijlCFBhE1 — Flavio Bolsonaro 177 Senador_RJ (@FlavioBolsonaro) September 7, 2018

Flavio Bolsonaro later thanked supporters for their help, posting a photo of his father in a hospital bed, smiling and signaling a thumbs-up. "Jair Bolsonaro is stronger than ever and ready to be elected President of Brazil," he tweeted.

On Friday, Flavio Bolsonaro said his father was having some difficulty speaking. "He probably won't be able to go out onto the streets in this campaign. He can't go out onto the streets, but we can."

The stab struck the small intestine and more severely the large intestine. The worst was the large-caliber mesenteric vein lesion. If there had not been a hospital nearby he would probably be dead now from bleeding. @VP @mike_pence pray for us 🙏 https://t.co/F2sNY2qFII — Eduardo Bolsonaro 1720 (@BolsonaroSP) September 7, 2018

Doctors said they found internal bleeding and lacerations to the small and large intestines and not his liver. Bolsonaro may have to undergo another round of surgery in the coming months.

Bolsanaro is using a colostomy bag, and it will stay in place for at least two months, doctors said. He has been transferred to the Albert Einstein hospital in Sao Paulo, TV images and video showed.

In a longer tweet Friday, the candidate thanked family and supporters for their concern.

"Thank you from the bottom of my heart to God, my wife and children, who are by my side, to the doctors who are taking care of me and who are essential so that I could continue with you here on earth, and to all for the support and prayers!"

Human Rights Watch condemned the attack.

"Political or ideological differences should only be resolved through democratic processes, and never through violence," the watchdog group said in a statement. "The Brazilian authorities should carry out a prompt, impartial and thorough investigation into this crime, and ensure that justice is served."

A screen grab shows the moment just before Bolsonaro was stabbed Thursday.

The country has been wracked with violence and strikes that have buffeted the government of Michel Temer, who replaced Dilma Rousseff as Brazil's President after she was impeached in 2016

A massive corruption scandal and economic woes prompted Brazilians to call for their own version of Trump, CNN reported last year.

Running for the small Social Liberal Party, Bolsonaro has seen his popularity surge as Brazil struggles to emerge from its worst recession , with the left and right heavily polarized, and the jailed Lula da Silva barred from office after failing to overturn a corruption conviction.

Lula da Silva has been in jail since April after he was sentenced to 12 years for corruption and money laundering. The accusations against him emerged after he left office in 2011.

Repudio totalmente qualquer ato de violência e desejo pronto restabelecimento a Jair Bolsonaro. — Fernando Haddad (@Haddad_Fernando) September 6, 2018

The 72-year-old has strongly denied any wrongdoing. His defense said he was a victim of political persecution.

Lula da Silva's likely replacement as his party's presidential candidate, Fernando Haddad, tweeted that he "repudiated any act of violence" and wished Bolsonaro a speedy recovery.

In March, Marielle Franco , a Rio de Janeiro councilwoman and a prominent critic of police killings in shantytowns, was assassinated. Thousands in Brazil and across the world protested that killing.

Correction: This story has been updated to correct the spelling of the state where Bolsonaro was attacked.