You mean a flash like in photography? Just create a light and add to it as component a script that turns the light on and then off after some amount of time. Make this logic trigger for whatever reason you need like when button is pressed.
Post the script you've made and we'll help you improve it so it works. No one's writing an entire script for you.