Man charged in attacking veteran deputy