You can build a circuit to do that using a 555 timer and about 6 cheap components. Can you solder and build a simple circuit from a schematic?
Yes, you could put it between the battery box/switch and the motor, you would only need to break the connection to the motor (either side).