How to subtract alpha channel from another alpha channel?
You need nothing more then a Mix node set to Subtract with a factor of one.

To replicate your bottom image, plug your first image in to the first socket on the mix node, and the blurry image into the second socket.