The president of Chad, 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 in a battle against rebels in the north.

His son, Mahamat Kaka, was named interim president by a transitional council of military officers, army spokesman Azem Bermendao Agouna said 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.