Man shot by deputy arrested for aggravated assault, terrorizing