There are plenty of ways to do this. It depends on what components you have access to?
You can use the 555 timer, some inverting gates (NOT, NAND, NOR), CD4013, 74HC7474, a comparator/op-amp (LM311, LM393, uA741) a microcontroller or even a couple of transistors.
Here's how to do it with a 555...