Ab initio calculation of the 4He(e,e'd)d reaction