Man accused of killing police officer appears in court