Individual and Group Dynamics of Terrorist Behavior