Man shot by police sentenced after pleading guilty