Far- and Near-Field Photochemistry of Single Molecules on a Metal Surface