Man accused of killing K-9 appears in court