Daniel O'Brien, 4th Viscount Clare — Jacobite and soldier