Moscow declared NATO a "threat" to its security after the Western military alliance announced plans to reinforce defences in eastern Europe.