The secretary of defense has resigned and will step down from the role at the end of February