I agree with you. Unfortunately these attacks tend to strengthen the resolve of the people who want to reshape the middle East.
The other complicating factor is that not-intervening will mean sitting on our hands while civilian populations get badly treated by their governments.