The attack appeared to be the latest targeted assassination of senior military officials inside Russia’s borders.