A ride share driver has been arrested after he allegedly fired a water pistol in the Sydney CBD near NSW Parliament House, sparking a major police operation.