Putin also said he wanted to prevent Ukraine from joining NATO, where western troops could get closer to the Russian border.