KABUL, Afghanistan -- Islamic State militants attacked Afghan soldiers guarding a military academy in the capital of Kabul on Monday, killing at least 11 troops and wounding 16.
The attack was the latest in a wave of relentless violence in Kabul this month unleashed by the Taliban and the rival Islamic State group that has killed scores and left hundreds wounded.
Monday's attack started around 4 a.m., witnesses said, and fighting continued long after daybreak.
A suicide bomber first struck the military unit responsible for providing security for the academy, followed by a gunbattle with the troops, said Dawlat Waziri, spokesman for the Afghan defense ministry.
At least five insurgents were involved in the morning assault, according to Waziri. Two of the attackers were killed in the gunbattle, two detonated their suicide vests and one was arrested by the troops, he said.
All roads leading to the military academy were blocked by police, which allowed only ambulances access to the site to transfer the wounded to hospitals.
After the gunbattle ended, the security forces resumed control of the area. They also confiscated one suicide vest, an AK-47 and some ammunition, Waziri said.
Waziri earlier said that five soldiers were killed but later raised the death toll to 11. He insisted, however, that "the attack was against an army unit providing security for the academy and not the academy itself."
Afzal Aman, commander of the city's military garrison, confirmed the attack in the area of the Marshal Fahim academy. Hashmat Faqeri, a resident near the site, told The Associated Press he heard sounds of explosions and a gunbattle.
Hours later, the Islamic State group's affiliate in Afghanistan, known as Khorasan Province, posted its claim of responsibility on the website of its media arm, the Aamaq news agency, saying its fighters targeted the "military academy in Kabul."
Neighboring Pakistan condemned Monday's attack. Islamabad said it "reiterates its strong condemnation of terrorism in all its forms and manifestations, especially the series of heinous attacks within the last week in Afghanistan."
The academy, known as Marshal Fahim National Defense University located on the edge of Kabul at the Camp Qargha military base, is sometimes also called "Sandhurst in the Sand" -- a reference to the British academy.
Named after Mohammed Fahim, the country's late vice-president and a military commander of the Northern Alliance that fought the Taliban, the academy was inaugurated in 2013 after British forces oversaw building the officers' school and its training program.
The academy was also the site where the highest-ranking U.S. military officer to be lost in the Afghan and Iraqi wars was killed in August 2014. Army Maj Gen. Harold J. Greene, then deputy commander of the transition force in the country, was shot and killed by an Afghan soldier in a so-called "insider attack" that was later claimed by the Taliban.
The same academy was also attacked in October last year by a suicide bomber who killed 15 officers. The attacker was on foot and detonated his suicide vest as the on-duty officers were leaving the facility, heading home in the evening. That attack was also claimed by the Taliban.
Both the Taliban and ISIS have stepped up attacks in recent months in Kabul and elsewhere across Afghanistan, including massive bombings staged by militants determined to inflict maximum casualties, instill terror in the population and undermine confidence in Afghan President Ashraf Ghani's government and the country's security forces.
On Saturday, a Taliban attacker drove an ambulance filled with explosives into the heart of the city, killing at least 103 people and wounding as many as 235.
Interior Minister Wais Ahmad Barmak said Sunday that the investigation into the attack indicated that a second ambulance was also involved but had left the area, indicating some would-be attackers may have escaped.
The Taliban claimed the ambulance attack, as well as an attack a week earlier in which militants stormed a hilltop hotel in Kabul, the Intercontinental, killing 22 people, including 14 foreigners, and setting off a 13-hour battle with security forces.
Masoom Stanekzai, the head of Afghanistan's intelligence service, said five suspects have been arrested for their involvement in the hotel attack. A sixth suspect had fled the country, he said.
He also said that four people have been arrested in connection with Saturday's ambulance attack.
The recent brutal attacks have underscored the weaknesses of Afghan security forces, more than 16 years after the U.S.-led invasion toppled the Taliban, and raise questions about President Donald Trump's strategy for winning America's longest war.
The Taliban have been waging an insurgency since they were driven from power by U.S. and Afghan forces after the Sept. 11 attacks. In recent years, they have seized districts across the country and carried out near-daily attacks, mainly targeting Afghan security forces and the U.S.-backed government.
The Islamic State affiliate in Afghanistan emerged in 2014, as the U.S. and NATO were winding down their combat mission and around the time that IS declared its self-styled Islamic caliphate, headquartered in Syria and Iraq. Its followers have clashed with both Afghan forces and the Taliban.
Associated Press writers Maamoun Youssef in Cairo and Patrick Quinn in Beirut contributed to this report.
This article was written by Rahim Faiez and Amir Shah from The Associated Press and was legally licensed through the NewsCred publisher network. Please direct all licensing questions to email@example.com.