Sergei Shoigu, a long-standing ally of the president, has played a key role in Russia’s invasion of Ukraine.