Use table as shield and push forward until he runs out of ammo
Pick the knife back up, attempt to climb through the window, and stab him.
Then go grab the knife and stab him until he dies, and take his weapon, as well as the knife. You may need them later.
Search his stabbed body.