Man accused of killing ex-wife gets bail