Kelly Osbourne has revealed she "almost died" when she was shot in the leg by her brother Jack who was messing around with a pellet gun.