As a former counterterrorism official in the Clinton and Bush administrations, Richard A. Clarke often had to imagine worst-case scenarios. His first novel — a thriller — does just that: set five years in the future, it envisions the United States on the verge of another war in the Middle East.