A possible mechanism for optical variability of Seyfert galaxy nuclei