A 9-year-old who just took a lifesaving class, used the Heimlich maneuver to save her friend in school