Man appears in court for fatally shooting teen