A detective and a psychologist investigating a string of murders form a crime-solving team with the novelist whose work inspired the killings.