Kerry invokes Iraq mistakes at Syria hearing