For example, the desired compound is obtained by adding an organic solvent immiscible with water such as ethyl acetate to the reaction mixture, washing with water, separating the organic layer containing the desired compound, drying with anhydrous magnesium sulfate or the like and evaporating the solvent.