A China-backed pipeline that would make Niger an oil-exporting country is being threatened by an internal security crisis and a diplomatic dispute with neighoring Benin, both as a result of last year’s coup that toppled the West African nation’s democratic government.