Spin dynamics of an individual Cr atom in a semiconductor quantum dot under optical excitation