You should not punish your cat for killing a bird but prevent it if you do not want this to happen. Cats are hunters, and this is natural for them. The solution is not to let the cat out or protect your birds if you have bird pets indoors.