KABUL, Afghanistan — Defense Secretary James Mattis made a surprise visit to Afghanistan's war-shattered capital on Friday, the U.S. command in Afghanistan said, just days after a suicide bomber killed 21 people in the city and wounded 90 others.

Accompanied by Gen. Joseph Dunford, chairman of the joint chiefs of staff, Mattis met with senior government officials, including President Ashraf Ghani and his leadership partner in the often fractious Unity Government, Chief Executive Abdullah Abdullah. Security featured prominently in their discussions, as did government attempts to put the brakes on runaway government corruption, said a presidential statement following the meetings.

Mattis also assured the Afghan leadership that the United States was committed to stay the course in Afghanistan until the country is secure and stable, the statement said.

There was no indication either from the Afghan government or the U.S. military command of a change in strategy that might bring about greater security or how the existing strategy might bring about results.

Mattis' visit to Afghanistan, which lasted a little more than six hours, comes amid brutal assaults against the country's minority Shiites and a fresh round of insider attacks this week that have claimed the life of one American service member and eight local police.

The U.S. has been supporting Afghan forces in an aggressive campaign against Islamic State group insurgents in eastern Nangarhar province, yet the IS affiliate has repeatedly been able to carry out horrific and brazen attacks in the heavily fortified capital of Kabul.

The victims have most often been Afghanistan's minority Shiite Muslims. The radical Sunni Islamic state reviles Shiites as apostates.

On Wednesday, a suicide bomber blew himself up at a wrestling center killing 21 people and wounding 90 others. Two of the dead were journalists who died when a second bomber blew himself up as first responders and journalists rushed to the scene.

On Friday, Afghanistan's Islamic State group affiliate issued a statement claiming responsibility for the attack on the wrestling center. The statement was accompanied by a picture of a young man with a masked face, who was identified as suicide bomber Saber al-Khorasani.

The second explosion was a vehicle filled with explosives, according to the statement, which could not be independently verified. The discrepancy between the IS account and the Afghan government's initial report of two suicide bombers was not immediately clear.

The Afghan affiliate is known as IS in Khorasan province, the ancient name of an area that once included parts of modern-day Iran, Afghanistan and Central Asia.

Mattis' visit to Kabul comes as Washington seems to be ramping up efforts for a negotiated end to Afghanistan's protracted war and Washington's longest military engagement.

U.S. Secretary of State Mike Pompeo announced this week the appointment of Zalmay Khalilzad as Washington's new point man for Afghan reconciliation. Khalilzad, a controversial figure in the region, is a former envoy to Afghanistan.

Mattis arrives in Afghanistan fresh off earlier meetings in Pakistan where Pompeo said the U.S. wanted to "reset" its raucous relationship with Pakistan and newly elected Prime Minister Imran Khan expressed optimism, promising to work with Washington for peace. But Khan has repeatedly said Pakistan is no longer interested in partnering with the United States in war.

"This is my promise — that Pakistan will never again fight someone else's war," Khan said on Thursday in a speech to mark Pakistan's Defense Day. As an opposition leader Khan was a sharp critic of Pakistan's participation in the U.S.-led war on terror.

Still, Pakistan is seen as key to any negotiated end to the Afghan war because of its close relationship with the Taliban. Both Washington and Kabul have been harsh critics of Pakistan for allowing safe havens for Taliban fighters on its territory, a charge Islamabad has denied.

Khalilzad's appointment was also unwelcome news in Pakistan because of his outspoken attacks on its military and powerful ISI intelligence agency, even suggesting Washington should declare Pakistan a state sponsor of terrorism.

Washington last weekend announced it canceled a $300 million Coalition Support Fund payment to Pakistan, which is a payment for costs incurred by Pakistan's military in the war on terror.

____

Gannon reported from Islamabad, Pakistan. Associated Press writer Munir Ahmed in Islamabad and Maamoun Youssef in Cairo contributed.