Section 96 of The Indian Penal Code, 1860 View Chapter 4

Things done in private defence

Nothing is an offence which is done in the exercise of the right of private defence.