Coupling of the triplet states of a negatively charged exciton in a quantum dot with the spin of a magnetic atom