Plasma jet and shock formation during current loop coalescence in solar flares