A Russian deputy economy minister was sacked after criticising “stupid” government economic policies in an online post that went viral.