An Afghan official says the Islamic State group now has a presence in three provinces but that the government is determined to drive it out.

Zafar Hashimi, the Afghan president's deputy spokesman, said Sunday that the group — which controls large areas of Iraq and Syria — is active in the eastern Nangarhar, western Farah and southern Helmand provinces.

Hashimi says security forces have launched successful operations against the IS group but gave no further details.

The Taliban, which have been at war with the government for nearly 14 years and are also active in the three provinces, have warned the IS group to stay out of the country. Both groups want Islamic rule but the Taliban do not recognize the IS group's self-styled caliphate.