I will give you one warning regarding working on books/stories about terrorists and the like. It's pretty much for people living in the US...watch your research!
People have pretty much gone over the reasons not to feel guilty if someone uses your ideas, plus mentioned books like the Bible (I was going to make comments pretty much the same), but here's something else to worry about. As I recall (could be wrong, it was over a year ago) it came from Rachel Caine's blog.
She had a friend who was writing a book involving unexploded landmines. Said friend did a lot of online research, and also checked a lot of books out of the local library. Hey, it makes sense...we all do research for our stories, right?
So what happened? Well, to make a long story short, the person was raided by Homeland Security! The sort of information they were accessing sent up red flags in someone's database, and they moved in seized all the research and computer equipment involved. When they eventually got it back, it was apparently full of tracking devices/etc. (they took it to a friend to sweep for this stuff).
I'm pretty sure it was Rachel Caine's blog that led me to this story. If it wasn't, my apologies to her.
Anyway, the moral of the story...be careful of what you research. Your government may believe you have a much darker purpose in mind than writing a novel!
Keith