South Carolina attorney resigns, enters rehab after being shot months after deaths of wife and son