I killed him but when I go out form the graveyard they put me in a trial and all I always found guilty what I have to do in the trial so I get out
If you fight the guards you will always be found guilty.
You only stand a chance in court if you come quietly and explain you're not a grave robber.