A man is in a serious but stable condition after allegedly threatening officers with a knife before being shot by police in the NSW northern rivers.