The correct sentence is: "He saved the goat by killing the snake."
Here, "by" is used to indicate the means through which the action (saving the goat) was accomplished. Why other options are incorrect:
- "into" suggests movement and is grammatically incorrect here.
- "on" refers to surface contact, not appropriate in this context.
- "of" doesn’t convey causality or method.