Hmm, you certainly find some interesting examples, Hanuman. I think it is a preposition, with the prepositional phrase 'as a surprise' acting as an adverbial of manner.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.