If in self-defence, rapist has been killed, the victim is usually acquitted of the crime. They are not punished, if killing is done only in self-defence or save someone from rape.
In such situations the killing is not planned. This would have happened unintentionally, while trying to protect oneself (if its Iccha) or the victim (If Jogi or anyone else has killed rocky).
If the the killer is someone other than Jogi(as he is getting arrested already), then they should come forward and accept it. They will not get any Serious punishment / maybe no punishment also. But they have to stand the trial. If they don't come forward and innocent person gets punished then its wrong. Killing a Rapist per se accidentally with only motive to defend, i guess will not be considered wrong, even by law. (I'm no law expert, but this is the general idea we get)