Fighting in a war, as do the characters in For Whom the Bell Tolls, inevitably means having duties. There are the obvious duties to one's cause, or to one's commander. But there are also duties to one's friends, whose lives are constantly at risk. Characters have different understandings of what their duties are, and what they require. Some, such as the main character (when we first meet him), seem almost entirely motivated by duty to the side they're fighting for, and are tempted to regard themselves and other people as instruments. That's much harder to do if one begins to form friendships with the people one fights with.
Pablo is moved by a sense of duty, but his sense of duty is to his band, rather than to the Republic.
Robert Jordan was extraordinarily concerned that his mission would fail after Pablo had stolen the detonators, but never seriously considered abandoning it.