A measurement of longitudinal photon contribution in pion electroproduction from protons