Surge in militancy in region bordering Afghanistan is now one of greatest security threats facing Islamabad