Atom–photon entanglement near a plasmonic nanostructure