Saturday, ISIS claimed responsibility for an attack on the Pakistani embassy in Kabul, which Islamabad condemned as an "attempted assassination."
Friday's attack in the Afghan capital left one security guard injured.
ISIS's regional chapter claimed in a statement cited by the terrorism tracker SITE that it "attacked the apostate Pakistani ambassador and his guards."
Prime Minister of Pakistan Shehbaz Sharif referred to the incident as an "attempted assassination" and demanded an investigation.
A Kabul police spokesman reported that one suspect was apprehended and two light weapons were seized following a security sweep of a nearby building.
Although Pakistan does not officially recognize Afghanistan's Taliban government, it has kept its embassy open. It maintains a complete diplomatic mission since the hardline Islamists took power in August of last year.
An official at the embassy told AFP that a lone assailant "came from behind the cover of houses and began firing," but that the ambassador and other personnel were safe.
Afghanistan's foreign ministry spokesman condemned the "failed attack" in the strongest terms.
Afghanistan stated in a statement that it "will not allow any malicious actors to threaten the security of diplomatic missions in Kabul" and vowed to find and punish those responsibly.
Pakistan's relations with the Taliban are complicated, as Islamabad has long been accused of supporting the extremists while also supporting the US-led invasion of Afghanistan that toppled them after the 9/11 attacks.
Pakistan is home to over a million Afghan refugees, and their porous shared border is frequently the site of violent conflict.
Since regaining power, the Afghan Taliban have insisted they will not permit foreign militant organizations to operate on Afghan territory.