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

An assailant stabbed Bolsonaro 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.

READ MORE: 3-Year-Old Shot In Calumet Heights

Video shows Bolsonaro grimacing in pain before being carried away.

Police arrested a suspect, 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.

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 October 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.

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.

Doctors said they found internal bleeding and lacerations to the small and large intestines and not his liver.

READ MORE: AMBER Alert Canceled In Indiana For 7-Year-Old Christopher Green Jr. Of Gary, Who Is Believed To Be In Extreme Danger

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.

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.”

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.

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.

MORE NEWS: At Least 5 People Killed, 17 Wounded So Far In Chicago Weekend Gun Violence; 3-Year-Old Boy Among Survivors

© 2018 Cable News Network, Inc., a Time Warner Company. All rights reserved.