Man shot by Ga. deputy after struggle in courthouse