Book by C.I.A. Officer Says U.S. Is Losing Fight Against Terror