Disable the Blue Bubble with a Deku Nut or the Hookshot, then strike it twice with the Master Sword to eliminate its unnatural existence.

Link fighting a Blue Bubble.