Image copyright Supplied Image caption The group known as Islamic State is believed to be in a strong position in Nangarhar province

An American special forces soldier has been killed while carrying out operations against the group known as Islamic State (IS) in Afghanistan, the US military has said.

It says the soldier was killed while fighting IS in Nangarhar province in eastern Afghanistan.

Nangarhar province borders Pakistan and has a reputation for being a centre of IS militancy.

US forces have launched several air strikes on jihadist bases in the area.

IS announced the establishment of its Khorasan branch - an old name for Afghanistan and surrounding areas - in January 2015. It was the first time that IS had officially spread outside the Arab world.

Image copyright AFP Image caption Nato estimates that there are between 1,000 and 1,500 IS fighters in Afghanistan

Within a few weeks, the group appeared in at least five Afghan provinces. including Helmand, Zabul, Farah, Logar and Nangarhar, trying to establish pockets of territory from which to expand.

IS in Afghanistan: How successful has the group been?

It was the first major militant group to directly challenge the Afghan Taliban's dominance over the local insurgency.

Yet despite efforts to energise battle-weary militants, IS struggled to build a wide political base and the indigenous support it expected in Afghanistan. Instead, it made enemies of almost everyone, including the Afghan Taliban.

In the first half of 2015, IS managed to capture large chunks of territory in eastern Nangarhar province.

The new 'Great Game' in Afghanistan

Islamic State group: The full story

IS is also trying to get a foothold in northern Afghanistan, where it aims to link up with Central Asian, Chechen and Chinese Uighur militants.

But it has largely been eliminated from southern and western Afghanistan by the Afghan Taliban and military operations conducted by Afghan and US/Nato forces.

Estimates about IS's numerical strength inside Afghanistan vary, ranging from 1,000 to 5,000.