Don't kill it!! Bees are bros, they only sting as a final resort. Wasps are the evil ones, piercing people with their stings for no reason whatsoever.
Trap it with a cup and some paper, then free it out of the window.
it disappeared
if it was a wasp i would have just thrown a brick at it