Russian President Vladimir Putin has warned NATO that Russia is prepared to respond if the defensive bloc allows Ukraine to do something it has lobbied for.