Push button with auto off
This is the basic idea (functional), but it may need to be tuned like R5/C2 time constant, switching spikes on transistors (add little capacity to slow it), width of trigger pulse, etc...
Edit: You get better result with R3,R8=1k , and C2= 68uF (almost exact 5sec)


(green is button press, blue is output voltage)