Mr Mattis warned it would face a "massive military response" if it used nuclear weapons.
Separately, North Korea released a South Korean fishing boat which it said had been found in North Korean waters illegally.
The crew of 10 were released on Friday evening, South Korean officials said.
It comes at a time of heightened tension in the region, with both sides running a series of military exercises.