Updated

An Afghan official says at least three people, including a small child, were killed when Islamic State group militants attacked Taliban insurgents in eastern Nangarhar province.

Ataullah Khogyani, spokesman for the provincial governor, said Monday that five additional civilians were wounded in the fighting a day earlier. He said 21 Taliban fighters and seven IS fighters were killed in the gun battle in Chaparhar district.

Khogyani said a 9-year-old girl was killed in crossfire and two other civilians were killed by insurgents.

A statement from IS news agency Aamaq said IS militants launched attacks against the Taliban in Chaparhar in which 14 Taliban were killed, including a group leader, and three others were arrested by their fighters.

The Taliban and IS are fighting separately to overthrow Afghanistan's U.S.-backed government.