As he showed the gun to his friends, it went off — and a BB ricocheted off a wall and nailed the 45-year-old teacher in her ankle.