Afghan, NATO troops repel Taliban attack on U.S. base near Pakistan border