I think you can declare them burglars posthumously.
If someone is in your house, say for a coffee, and you kill him or her spontaneously, you can say that they were burgling and that will be OK.
But don't forget, they must be in your house, otherwise the game's up.