A man walked away from a building that has been surrounded by water in Bellport, N.Y.