Shabnim Ismail completed a sensational hat-trick with the final ball of the game to earn Welsh Fire a dramatic victory against Birmingham Phoenix.