Some peculiarities of the pyroelectric effect in photoferroelectrics