Dog rescued from sea of foam