A 29-year-old man is being praised as a hero after he risked his own life and fought with a crocodile only to save the life of his 30-year-old friend.