Gun salesman accused of killing cop appears in court