12-year-old boy in critical condition after nearly drowning