(CNN) Timothy Prater had seen the YouTube videos. He remembered seeing a poster, too. So when this 9-year-old's cousin started stomping his feet and holding his throat, Timothy knew just what to do.

He leaped into action, dropped to his knees and put his cousin, Connor, in the Heimlich maneuver. A few moments later, a Lifesaver flew out of Connor's throat.

Prather, 9, had saved a life.

The two were visiting a rodeo in McNairy County, Tennessee, when the cousin began choking. "He was just crying and stomping his feet and holding his throat," Prather told CNN affiliate WREG . "Our mam-maw had him upside down and our pap-paw was patting his back, that's how I knew something was wrong."

Timothy remembered watching YouTube videos about the Heimlich, and remembered a poster hanging in Ramer Elementary School's cafeteria illustrating the steps to save someone from choking.

Read More