Man charged with fatal shooting of sheriff's deputy leaves court