בנפל אויבך אל תשמח ובכשלו אל יגל לבך
If your enemy falls, do not exult; If he trips, let your heart not rejoice.
Say unto them: As I live, saith the L-rd G-D, I have no pleasure in the death of the wicked, but that the wicked turn from his way and live; turn ye, turn ye from your evil ways; for why will ye die, O house of Israel?
The death of anyone is not cause for joy.
I think it is OK for one to be relieved that someone has been ‘brought to justice,’ if those are terms you’d use, and you feel death is justice.