Eighteen assailants died and six were in custody, with one soldier killed and three wounded, after an attack on Chad’s presidential palace, state media have reported.