Recent years have seen growing attacks by Tehreek-e-Taliban Pakistan Islamist militant group on police and military in areas near the Afghan border.