A man has been charged with the murder of a court bailiff while he was at work.