A man has a close call while swimming under ice.