Possibility of the non-phonon mechanism of superconductivity in a layered Fermi liquid