Democrat Gideon wins primary, will face GOP Sen Collins