Capillary bridge deformation and rupture - Smoothed-Particle Hydrodynamics