Last week , Hamas , which swept to power in parliamentary elections in January , said it was forming a four thousand-strong paramilitary force to maintain order in the Palestinian territories .