Republican wins state house special election