A 17-year-old boy was critically wounded when a shark he was trying to bring on a fishing boat lunged and bit his leg.