U.S. national security adviser discusses militant attacks in Pakistan talks