Ensure territory not used for terror attacks, India, US tell Pak