Contentious custody battle could be motive behind school teacher's killing