Separating and riveting tool