‘This was one of, if not the scariest experience of my life,’ the Olympic gymnast wrote Saturday on Instagram