Baker, Samuel, militia officer