Herman, George Frederick, Colonel; Consul-General at Tripoli