President Trump said in a social-media post that the war must end soon.