North Korean leader Kim Jong Un said his country would close its nuclear-test site and suspend long-range missile launches but hinted that he didn’t intend to give up his nuclear arsenal—at least not immediately.

The mixed message, delivered Saturday by North Korea’s state-run news agency, came as Mr. Kim prepares for a potential meeting with President Donald Trump and amid negotiations about North Korea releasing U.S. detainees.

Striking...