When you see that he's coming, simply go down twice using the arrow on the left side of the screen, then at the bottom you'll see a "ninja" icon appear, when clicked/tapped you will hide under the bed, once he's gone click again to leave the hiding
*It's good practice to put just a blanket on her before you hide so her suspicion won't rise and he will go away faster