he was surprised at the quiet spitting sound that came from the gun and realized that what he had taken to be a long-barreled pistol was , in fact , a beretta 92 centurion-a compact 9mm with a shortened slide and barrel .