Outgoing NATO chief Jens Stoltenberg cautioned the United States and Europe against "isolationism" in his parting speech on Thursday.