Pakistan's security forces and its intelligence agency have facilitated the rise of the Taliban, with whom they have an "ambiguous" relationship, a former top American army official, now headed to become the country's representative to Afghanistan has said.