As sumwun said, the probability of the Ralts being shiny is the regular 1/8192, and the probability of Wally KOing it is 1/8574. Since these are both independent chances, the probability is the product of the two chances, or 1/70,238,208, which is rarer than finding two back-to-back shinies.