A Simple Molecular Machine Operated by Photoinduced Proton Transfer