The man was resting on the shore after breaking the swim record