In the years since the US-led invasion of Afghanistan , the Pakistani military has been repeatedly blamed for " double-crossing " the Americans - protecting the Taliban and other militants while at the same time playing its role as the frontline state in the US-led " war on terror . "