I think the AI is a bit hasty unless you have good reason to think you will get called.
I would have put in a raise that is alot bigger than will give him correct odds to call on a flush draw, yet small enough for him to feel obligated to call. Maybe raise him by $6...