Cobra bites 8-year-old, who bites back and kills snake