Defeating the wizard in Inquisitive Dave takes a bit of careful movement. Here's how it goes:
When the voice begins speaking to you in the tower, keep heading upward until you reach the part where a figure appears and traps you—then continue on. Keep climbing until you finally face off against the "wizard," and press the button in the top-right corner. Important: during this section, never jump over to the wizard's side of the wall, or you'll blow Dave up.
After that, the wizard will fake being dead. Just keep walking away from him, over toward the wall on the right side, and keep going until he starts saying he can't see you and that he's weakening. At that point he'll die—jump onto his cloud, and you've won!