State media said Kim Jong Un had visited a factory producing light arms as he pushes to modernize North Korea’s conventional forces after years of focus on nuclear weapons.