Dynamics of nonlocality for atom–field entangled state in a cavity