Obama says twisted ideology behind attack on civilized world