Man accused of shooting dog appears in court