NATO’s senior military officer said the alliance was confronting efforts by Russia to increase its military capabilities on virtually every level and allies were on guard to prevent any repeat of the Kremlin’s military intervention in Crimea and eastern Ukraine.