In a story by Rudyard Kipling, this mongoose protects an English family from snakes
While Nagaina is distracted by a 
female tailor bird Rikki destroys the cobra's unhatched ... His subsequent role is 
to protect the family by keeping the garden free from any future intrusion by 
snakes.