Mr. Trump’s statement, in a midafternoon Twitter post, may have been a response to President Vladimir V. Putin of Russia, who in a speech to his military’s leadership in Moscow earlier on Thursday vowed to strengthen Russia’s nuclear missiles.