Chad's President Idriss Deby, who ruled his country for more than 30 years and was an important Western ally in the fight against Islamist militants in Africa, has been killed on the frontline against rebels in the north.
Deby's son, Mahamat Kaka, was named interim president by a transitional council of military officers, spokesman Azem Bermendao Agouna said in a broadcast on state television.
Deby, 68, came to power in a rebellion in 1990 and was one of Africa's longest-ruling leaders, surviving numerous coup attempts and rebellions.
His death was announced the day after he was declared the winner of a presidential election that would have given him a sixth term in office. Most of the opposition, which had long complained of his repressive rule, boycotted the vote.
Deby - who often joined soldiers on the battlefront in his military fatigues - visited troops on the frontline on Monday after rebels based across the northern frontier in Libya advanced hundreds of km (miles) south toward the capital N'Djamena. L1N2MC20E
"Marshal Idriss Deby Itno, as he did each time that the institutions of the republic were gravely threatened, took control of operations during the heroic combat led against the terrorist from Libya. He was wounded during the fighting and died once repatriated to N'Djamena," Bermendao said.
The government and National Assembly have been dissolved and a nationwide curfew imposed from 6 p.m. to 5 a.m.
"The National Council of Transition reassures the Chadian people that all measures have been taken to guarantee peace, security and the republican order," Bermendao said.
Deby had pushed through a new constitution in 2018 that would have allowed him to stay in power until 2033 - even as it re-instated term limits.
He took the title of Marshal last year and said before last week's election: "I know in advance that I will win, as I have done for the last 30 years."
He was dealing with mounting public discontent over his management of Chad's oil wealth and crackdowns on opponents.
But in the election results announced on Monday, Deby was credited with 79% of the vote, handing him a sixth term in office. Several leading opposition figures boycotted the poll.
Western countries have seen Deby as an ally in the fight against Islamist extremist groups, including Boko Haram in the Lake Chad Basin and groups linked to al Qaeda and Islamic State in the Sahel.
His death is a blow to former colonial power France, which had based its Sahel counter-terrorism operations in the Chadian capital, N'Djamena. Chad had announced in February the deployment of 1,200 troops to complement 5,100 French soldiers in the area.
The rebel group Front for Change and Concord in Chad (FACT), which is based across the northern frontier with Libya, attacked a border post on election day and then advanced hundreds of kilometres (miles) south.
But the Chadian military appeared to have slowed its advance about 300 km (185 miles) from N'Djamena.
The rebels acknowledged on Monday that they suffered losses on Saturday but said they were back on the move on Sunday and Monday.
Déby had joined the army in the 1970s when Chad was going through a long-running civil war. He received military training in France and returned to Chad in 1978, throwing his support behind President Hissène Habré and eventually becoming commander in chief of the armed forces.
He seized power in 1990, leading a rebel army swathed in desert headgear in a three-week offensive launched from neighbouring Sudan to topple Habre, a man accused of instigating tens of thousands of political murders.