The Afghan government and the United States have both accused Pakistan of failing to clamp down on Taleban insurgents based in Pakistan who launch attacks into Afghanistan .