A Russian missile attack on a military base in western Ukraine has prompted warnings that the war is closer than ever to NATO territory.