Witnesses have recounted the horror moment a man was fatally attacked by a shark while swimming at a popular beach – likening it to a “scene off Jaws”.

The attack unfolded at Sorrento Beach, in Perth’s north, about 10.15am on Friday.

Emergency crews mounted an extensive search of the water, with WA Police Force helicopter, Water Police, RAC Rescue helicopter and Department of Primary Industries and Regional Development (DPIRD) fisheries vessels called in to search for the swimmer about 10.30am

7News reports the man was swimming with a friend along the coast just 15m from shore when the shark attacked.

WA Police later confirmed the man died as a result of the attack.

Dozens of witnesses were on the beach when the horror unfolded, with school students swimming at the beach earlier in the morning.

One witness told 7News the attack was like a scene from the horror movie Jaws.

“It’s like a scene off Jaws, where a body is getting flicked around like a ragdoll,” Darrel Haythornthwaite told 7News.

He said the man’s friend had made it back shore but was distraught.

“He felt bad because he didn’t go back to save his mate,” Mr Haythornthwaite said.

Another witness said the shark dragged the swimmer from just 15m out from shore.

“The shark took his friend from literally 15m off the shore, dragged him like at the rate of knots, out to in front of that buoy there and just mauled him in front of us,” Ingrid Michell said.

She told 7News there was no way she would get back in the water.

Some witnesses described the shark as being up to 6m long.

The scare comes just days after local surfer and firefighter Mel Ismail was attacked while surfing alone at Glenfield Beach in Geraldton on Monday.

Another surfer, Shannan Dunn, saw blood in the water and rushed to Mr Ismail’s aid before a group of teens tourniqueted his leg with a ripcord from a surfboard.

Mr Ismail lost his foot in the attack and suffered serious leg injuries, according to 9News, and the shark tore a huge chunk out of his surfboard.

He was rushed to Geraldton Health Campus’ Intensive Care Unit, where he remained in a serious but stable condition, and faced a long road to recovery.

The Geraldton attack prompted the closure of a large section of Glenfield Beach, with authorities carrying out patrols in the area.

Earlier this year, Coogee swimmer Leah Stewart was mauled by a 4m great white while swimming between the flags.

The 34-year-old June suffered serious injuries which led to the amputation of her left arm.

Ms Stewart recently revealed her heart stopped as lifesavers rushed her into an ambulance, with rescuers initially unsure she would survive.

She spent 10 days in a coma and underwent nearly a dozen surgeries following the attack.

Ms Stewart previously described coming face-to-face with the shark, which she said was so close its mouth and teeth were visible.

“I will never forget its face,” she told 60 Minutes.

“It was huge and its teeth and its mouth was massive and its eyes, it’s just black little beady eyes, we were just looking face-to-face. It was a monster.”