Compressed wormlike chain moving out of confined space: A model of DNA ejection from bacteriophage