Dmitry Rogozin, the former head of Russia's space agency, has come under fire following a post published on his X account.