Killer of 9 had talked of workplace attacks, ex-wife says