Islamist groups’ previous attempt to create such a space was successfully countered by the military in 2009, when it drove insurgent forces from the sensitive district of Swat and the tribal agency of South Waziristan.