Chad, as well as Nigeria, Sudan and the Central African Republic, had welcomed hundreds of thousands of refugees who had fled armed conflicts or terrorist threats.