IS has been expanding its presence in Pakistan in recent years and has claimed a number of deadly attacks, including a suicide bombing at another Sufi shrine in November 2016 in which more than 50 people were killed.