An 11-year-old boy is recovering after being attacked by an lion cub kept illegally as a pet in Thailand.