Power shuts off in few seconds

#1
Hi, Today morning I tried to start my 2008 corolla (E140 series). Once I turn the key lights came up and initial check ran as usual. Then everything shut off except radio before I crank the engine and radiator fan started to run while hazard lights blinking. In few seconds fan turned off and power came up, same process was repeating continuously. I cranked the engine while power comes on; engine started but turned off in seconds. What could be the issue?
 
Top