Indian Penal Code, 1860
96. Things done in private defense
Nothing is an offence which is done in the exercise of the right of private defense.