On the mechanism of a photodynamic reaction