Tracking of an electron beam through the solar corona with LOFAR