The move marks the most serious shakeup of the top military brass since Russia’s full-scale invasion of Ukraine.