If you have an android phone there is an application called "Alarm Clock Xtreme (FREE)" there is a setting to automatically shut it off after so many seconds I think the least amount of time is 5 seconds.

You could buy it but the auto-turn off feature is available in the free version.