An Australian surfer was attacked by a shark at a nudist beach after accidentally headbutting it while trying to catch a wave.

Surfer Paul Kenny was surfing at Samurai Beach, a nudist beach in Australia when he headbutted the shark it bit his arm and was concerned it would bite his legs.

“Where is it and is it coming back to take my legs? That’s what I was worried about. If it took my legs, I’d be gone, I wouldn’t have been able to walk out, get out so…and there was no one else in the water with me. No one at all,” Kenny said.

Kenny said he punched the shark just as he had heard one of his heroes, former surfer Mick Fanning, had done until the shark let him go and swam away.