The caption says that they were "knocked out"; it doesn't say they were knocked out with the spray. I'd suspect that they were shot with tranquilizer darts.
I thought it was a spray, and that was the point that he was making that one need not have a gun to stop a bear.