Pakistani government and military leaders are struggling to control domestic insurgents , many of whom are located in the tribal areas adjacent to the border with Afghanistan .