A lifeguard was injured in a shark attack off the coast of a Long Island beach.