Electron production by 4.0 GeV/cπ+p interactions