Triathlon organisers are investigating as a horse was hit and its rider hurt by cyclists racing too close to them.