Jerry Ryan loses TC primary