Nonlinear focusing of terahertz laser beam using a layered superconductor