A, a policeman, while waiting for his wife to go home, was suddenly stabbed at the back by B, a hoodlum, who mistook him for someone else. When A saw B, he drew his revolver and went after B. After firing a shot in the air, B did not stop so A shot B who was hit at a vital part of the body B died. Is the act of A justified?
Because the hoodlum made a huge mistake attacking a policeman and almost killed him. It maybe would've been okay if the hoodlum attacked a regular person and no one was looking, but policemen are important.