The four US soldiers killed last month in an ambush were helping track and fight Islamist militants along the Mali-Niger border in the hours before their death, according to the nation's defence minister and a wounded Nigerien soldier who survived the attack.
The accounts raise questions about the Pentagon's assertions that the American and Nigerien troops were on a low-risk reconnaissance mission and that chances of contact with militants were unlikely.
They were, instead, operating in a dangerous and complex battle zone, where attacks happen frequently.
US troops are in Niger to train and advise, military officials have said, not to engage in combat missions.
The Pentagon has said it is investigating whether the soldiers' stated mission had changed.
Questions still unanswered: Was the team operating on faulty intelligence? Or was the mission changed at the last minute?
The details suggest revenge may have been a motive for the militants - who were part of a relatively new Isis affiliate, the Pentagon suspects - in their attack on 11 US soldiers and 30 Niger troops.
In a 90-minute phone interview, the wounded Niger soldier described the surprise assault on October 4 after they left the border village of Tongo Tongo. Five Niger soldiers also died.
The US troops, who included elite Green Berets, wound up taking the lead in the intense firefight. Some Niger soldiers fled, even as the Americans ordered them to stay on and fight.
"The Americans had more sophisticated weapons and so we let them confront the enemy while we took cover," said Sergeant Abdou Kané, 28, who was shot in the leg and who spoke from the town of Agadez in central Niger. "The Americans were telling us not to flee but to go back and fight the enemy. But the enemy was following us and shooting at us."
The insurgents, he said, far outnumbered the US-Niger team and had much greater firepower, including utes mounted with heavy machine guns.
The ambush, by masked and turban-wearing fighters, was so well-planned they had sent a large herd of cows towards the team, then attacked under cover of the dust raised by the cattle.
In the chaos, he added, several of the Americans were separated from the main group, as the team split up to avoid the militants. Air support to help the besieged team and evacuate the wounded took an hour or more to arrive.
A person at the military hospital in the capital, where Kané was treated for his injury, provided his number to the Washington Post.
The accounts suggest US troops may have gone beyond the scope of their mission in Niger, and they raise a question as to whether they had the required authorisation to capture or kill militants. At the very least, the accounts underscore the perils faced by US Special Forces and other American troops even in their capacities as trainers and advisers.
Niger's Defence Minister, Kalla Moutari, blamed a failure in intelligence, which resulted in a miscalculation of the risk of engaging with militants in the area around Tongo Tongo. But he also said the team had managed to kill some militants in a counter-terrorism operation before they arrived in the village.
"It was a mission to collect information and to neutralise the enemy or the threat," Moutari said. "The intelligence wasn't as complete as we thought, but at the same time some terrorists were neutralised on the way back from the mission.
"It so happened that the enemy had time to take position and got the right opportunity to attack them."
The American soldiers, Kané said, did not fight in the operation before arriving in Tongo Tongo but rather were advising the Niger forces.
Several US Defence Department officials contacted for comment either did not respond or declined to do so.
"We are all waiting for the investigation to conclude," said Navy Captain Jason Salata, a spokesman for US Special Operations Command.
In the days since the ambush, conflicting accounts have emerged. Some reports have suggested the US-Niger team had been reassigned to back up another team in a separate counter-terrorism operation. When asked if his team had changed missions, Kané declined to discuss the military's operational procedures.
"The mission was to go to Mali to capture the terrorists and bring them back," Kané said.
Special Forces soldiers make up about a third of the roughly 800 American service members in Niger. Several hundred troops work on a drone base in the capital, as well as prepare a second drone base in Agadez. The Special Forces' mission is to "advise and assist" Nigerien soldiers in counter-terrorism operations.
Several radical Islamistgroups linked to both Isis and al-Qaeda operate along the vast and ungoverned Mali-Niger border. Since February 2016, there have been at least 46 attacks, mostly targeting local security forces, according to the United Nations. Since the October 4 ambush, there have been several more assaults by militants, including one in which 13 Niger gendarmes were killed on October 21.
The Niger Government has deemed the terrain around Tongo Tongo so insecure that it imposed a state of emergency in several districts.
On October 3, Kané's team was along the border, crossing in and out of Mali. They were travelling in six utes - none with mounted machine guns, Kané said. The Americans were in armoured ones, but the Niger forces were not. The soldiers were carrying only light weapons.
There had been more than two dozen joint missions like this along the border in the past six months without incident, according to US and Nigerien officials. Moutari said the team was properly armed because "the capability to move fast" was essential when chasing militants.
The Americans had night-vision binoculars, and they helped the Niger soldiers attack a small band of militants that night, Kané said, adding that he was trained by the Americans.
Some fighters, he said, were captured, but he declined to say what happened to them. Nor would he discuss which extremist group they had targeted. "If there was no way to capture them, we had to kill them," Kané said.
After spending the night on the border, they headed back. On the way, they stopped in Tongo Tongo to pick up water. It was around 11 am. The villagers brought a pail to fetch water from a well.
As they waited, the village chief approached the Americans. He asked for their help in getting medicine to treat some sick children. The Niger soldiers cooked breakfast, Kané recalled. About 40 minutes later, the chief gave them directions to their base, about two hours away.
They headed out of Tongo Tongo.
About 100m outside the village, in an isolated patch surrounded by bushes, they heard three gunshots, Kané said. The convoy stopped. The American vehicles went forward, he said. There were more gunshots, and they returned fire.
That's when the militants sent the herd of cattle toward them, Kané said, generating large clouds of dust. "The enemy could see us, but we couldn't see the enemy," he said. The fighters, numbering more than 50, were using heavy machine guns, rocket-propelled grenades and Kalashnikov rifles.
Some were dressed in black. Others were yelling "Allahu akbar" - God is great.
"They had more sophisticated weapons than us," Kané said.
As the militants intensified their attacks, the soldiers retreated and scattered in different directions. Some were forced to abandon their trucks. "We all decided to go our own way to disrupt the enemy," Kané said.
The Americans, along with a few Niger soldiers, he said, continued to engage the militants. Kané was hurt when a bullet went through his thigh. At some point - he doesn't know when - he saw an American soldier calling for support on his radio.
When French Mirage jets and rescue helicopters arrived, the militants fled. The helicopters didn't land until Niger ground reinforcements secured the area. Then, Kané, with two wounded Americans and another wounded Nigerien soldier, were flown to the capital for medical care.
There were no remains of US soldiers in the helicopter. A few hours later, the bodies of three - staff sergeants Bryan Black, Jeremiah Johnson and Dustin Wright - were retrieved. Two days later, Nigerien forces found the remains of Sergeant La David Johnson, 1.5km away from the ambush site.
"We tried our best, but the enemy had everything they needed to beat us," Kané said.