US pledges to work with Pakistan to address ‘shared’ terrorist threats