KABUL, Afghanistan — U.S. military airstrikes have targeted militants who were threatening international coalition forces near the border in eastern Afghanistan, a U.S. forces spokesman said Sunday.

Most foreign forces withdrew from Afghanistan when NATO combat operations ended last year. Around 13,200 international troops are part of a new training mission, while a small contingent of U.S. troops is separately fighting the Taliban and other militants.

The first airstrike took place Friday in Nuristan, an eastern province next to Pakistan that is partially controlled by the Taliban.

Another strike followed in Paktika Saturday, a stronghold of the Haqqani network and other groups allied with the Taliban.

A spokesman for U.S. forces in Afghanistan declined to say which troops were involved and the nature of the threat.

“I’ll generally say coalition forces for both,” Col. Brian Tribus said.

Six militants were killed in the first airstrike, according to an interior ministry report, which also indicated an al-Qaida operative had been killed in the second.

Most U.S. forces withdrew from Afghanistan last year, leaving a small contingent of 9,800 troops to help train Afghan forces and conduct operations against the Taliban and other militants.

This includes around 3,000 U.S. troops that operate outside the new, two-year NATO training mission. The activities of U.S. special forces engaged in counter-terrorism operations have not been made public and little is known of their activities.

In the first fighting season since the official end of the NATO combat mission last year, the Taliban have made gains across the country and succeeded in overrunning 15 district headquarters, according to a senior Afghan security official.

Additionally, support for Islamic State, or Daesh as the group is known locally, has spread and the group is expanding its contingent of foreign fighters and disenchanted Taliban militants.