Connecting direct and indirect detection with a dark spike in the cosmic-ray electron spectrum