US defense secretary Jim Mattis warns Pakistan