Man appears in court after bank shooting