Two-photon-driven nonlinear dynamics and entanglement of an atom in a nonuniform cavity