Relative timing of electron acceleration and injection at solar flares: A case study