State trooper charged in fatal shooting appears in court