Boy nearly drowns in backyard pool