There will always be TK it's just part of the game, 95% is accidental, so punishing someone for it would just cause even more rage like Kafein said.
If you get teamhit a lot you might consider changing your playstyle, like avoiding 5vs1 fight (or use a long trusting weapon) and so on... Yes it does work !