Man charged with killing girlfriend, telling her ex via text