Chad’s president of three decades died of wounds suffered during a visit to front-line troops battling a shadowy rebel group, the military announced Tuesday, as the insurgents vowed to take the capital in what could become a violent battle for control of the oil-rich Central African nation.