How to Plan for a Terrorist Attack