WASHINGTON — A new assessment by the Pentagon’s intelligence arm has concluded for the first time, with “moderate confidence,” that North Korea has learned how to make a nuclear weapon small enough to be delivered by a ballistic missile.