US Defence Secretary Jim Mattis arrived in Afghanistan on an unannounced visit on Monday, hours after his Afghan counterpart resigned over a deadly Taliban attack that triggered anger and left the embattled army in disarray.
Mattis branded the Taliban "barbaric", but would not be drawn on recent calls to send more troops to help battle the resurgent militants, who are gearing up for the spring fighting season.
He vowed solidarity at a press conference in Kabul, but said only that the US was engaged in "defining the way ahead in Afghanistan with several nations", adding that no one country would be responsible.
Mattis arrived as Afghan security forces, already paying a heavy price against the Taliban, faced chaos with the resignations of Defence Minister Abdullah Habibi and army chief Qadam Shah Shaheem.
The resignations, along with the announcement of a corps commanders reshuffle, followed fury over Friday's Taliban assault on an army base outside the northern city of Mazar-i-Sharif.
Gunmen in soldiers' uniforms and armed with suicide vests entered the base in army trucks and opened fire at unarmed troops in one of the deadliest-ever Taliban attacks on an Afghan military target.
Afghan authorities have so far ignored calls to break down the official toll of more than 100 soldiers killed or wounded. Some local officials have put the number of dead alone as high as 130.
The raid, the latest in a series of brazen Taliban assaults, underscores the insurgents' growing strength more than 15 years since they were ousted from power by the US invasion of 2001. 
Up to ten army personnel are being questioned as suspects, a military spokesman attached to the base said, amid fears it could have been an insider attack.
At least four of them had valid passes to the base and had previously trained there, a security source told AFP. 
Afghans have slammed the government over the attack, though Habibi told a press conference on Monday his resignation was voluntary.
"Nobody in the world has been able to prevent such attacks," he said of the base assault. "It is an intelligence war and a war on terrorism. It is very difficult."
Habibi repeated that more information about the death toll would be given when an investigation is complete, though he admitted casualties were "high".
Troops targeted
Head of US forces in Afghanistan General John Nicholson also spoke alongside Mattis at the press conference at Nato headquarters in Kabul, vowing there was "no space" for the Islamic State jihadist group in Afghanistan. 
The US decision to drop its largest non-nuclear weapon on IS hideouts in eastern Afghanistan less than two weeks ago was a "very clear message" to the group, he said: "If they come to Afghanistan they will be destroyed".
The use of the GBU-43/B Massive Ordnance Air Blast, dubbed the "Mother of All Bombs", triggered global shockwaves, with some condemning the move against a militant group that is not considered as big a threat to Afghanistan as the Taliban.
Shortly after Mattis landed for the visit, his first to Afghanistan as Pentagon chief, militants carried out a suicide attack aimed at Camp Chapman, a joint US-Afghan military base in the southeastern province of Khost.
At least four Afghan security personnel were killed, officials said, the latest blow to morale after Friday's attack.
Mattis is the second senior US security official to visit Afghanistan this month: National Security Adviser General H.R. McMaster arrived in Kabul days after the MOAB was dropped. 
The Pentagon chief has said he is compiling an assessment for President Donald Trump on the brutal and seemingly intractable conflict.
The Afghan war is the longest in US history but Trump has scarcely mentioned it -- other than to call the MOAB strike a success -- since entering office.
Mattis, who has previously served with the US military in Afghanistan, said in February his commander-in-chief was waiting for input from his generals.
The US has around 8,400 troops in the country with about another 5,000 from Nato allies assisting a much larger Afghan force in the war against the Taliban and other Islamist militants. Nicholson recently called for "a few thousand" more troops.
Afghan troops and police, beset by killings and desertions, have been struggling to beat back insurgents since US-led Nato troops ended their combat mission in December 2014.
According to US watchdog SIGAR, casualties among Afghan security forces soared by 35% in 2016, with 6,800 soldiers and police killed.
More than a third of Afghanistan is outside government control.
Related Story