Driver charged in chase that ended in gunfire