Red Raiders rally to beat San Diego State 12-9