President Idriss Deby died from wounds suffered while leading soldiers on the front line against rebels.