Thousands flee gun battle as Chad withdraw from Central African Republic