 A version of this tale appears in "A Book of Dragons" by Ruth Manning-Sanders.It is Aarne-Thompson type 562, The Spirit in the Blue Light.Other tales of this type include "The Blue Light" and "The Tinderbox".