Killing someone as punishment for a past deed can represent:
A feeling of self-righteousness, or needing to feel right, or needing to consider another person to feel wrong
Feeling critical, or wanting your opinion to seem more important or carry more weight
This kind of dream can point to an underlying self-judgment or self-hate on the part of the dreamer.