Court records: Man killed in Charleston shooting had extensive criminal history