This ninja really needs to escape. There is only one way and that is run as fast as he can. He will find all kind of obstacles and even enemies blocking his way, but if you do it right, he will reach his destination. Crouch, jump, run and attack, do everything to escape.
Use the arrow keys to jump and crouch, use the space bar to attack.