Make a light turn off one second after I let go of the button

Why do you need this ? Is that a school project?