Log-parabolic spectra and particle acceleration in blazars. III. SSC emission in the TeV band from Mkn501