United States to work with Pakistan to mitigate Afghan border threat