Critical point and phase separation for an ionic system