I found Shiny SPIRT TOMB and it KO ITSELF NOOO

I found a super rare pokemon. In sea Mauvile, in one of the rooms, you find a book shelf. If you interact with it and open and close the menu spiritomb will attack you. I found SHINY one, and it KO itself. Nooooooooooooooooooo