How do you beat a will o wisp in Sonic and the Black Knight?

kill it