Niger's military junta had negotiated the withdrawal with U.S. officials.
Four U.S. soldiers were killed in an ambush in Niger in 2017.
Four soldiers were killed in the deadly attack carried out by an ISIS affiliate.
A military probe found failures led to the ambush of American soldiers in Niger.
They were part of a largely inexperienced and lightly-armed team.