Hi. I think the word "ransacked" in the sentence is an adjective. Another similar example, I think, would be this (with the word "rummaged" being an adjective): He came home after a long trip and found his house completely rummaged.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.