Dynamical stability of the k -essence field interacting nonminimally with a perfect fluid