Taliban attack on NATO base repelled