Surfing legend Tamayo Perry has died following a shark attack in Oahu, Hawaii.Perry, who appeared in the fourth “Pirates of the Caribbean” film, was attacked near Goat Island on Sunday. He was 49.

He was found off Mālaekahana Beach on Oahu’s North Shore by local surfers with an arm and a leg missing, 

The horrific incident was reported by a bystander who spotted a man suffering from shark bites, Honolulu’s emergency services said.

Perry was taking a surfing break from lifeguard duties when the ordeal occurred just before 1 p.m. local time

Emergency services brought Perry to shore on Malaekahana Beach, where paramedics tried to resuscitate him.But Perry — an ocean safety lifeguard and surfing instructor — was pronounced dead just moments later, officials said.

Ocean safety personnel put up shark warnings in the surrounding area following the fatal attack.“He’s well known on the North Shore.

He’s a professional surfer known worldwide,” said Kurt Lager, acting Honolulu ocean safety chief.“Tamayo’s personality was infectious and as much as people loved him, he loved everyone else more,” he said, adding that Perry was “a lifeguard loved by all.”

“Tamayo was a legendary waterman and highly respected,” Honolulu Mayor Rick Blangiardi said, calling Perry’s death “a tragic loss.”