A Danish backpacker survived a close encounter with a crocodile after "body slamming" the creature while trying to take a photo of it in Western Australia, a report said.