British writer brought wit, realism and class consciousness to cold war espionage fiction, reshaping the genre in the 1960s