Before retiring from the government , Asghari was a deputy defense minister and a commander in the elite Revolutionary Guards .