Driver shot during attempted carjacking