Investigators now face the question of how much the killings were the act of a deeply disturbed man, as his former wife and others described him, and how much he was driven by religious or political ideology.