A spectator attempting to take a selfie caused a crash involving approximately 20 riders