Entanglement between light and an optical atomic excitation