A marksman discharged four shots from the handgun as IS supporter Jihad Al-Shamie attempted to force his way into the building in Manchester, it was revealed at an inquest hearing.