Holding an election in a war-torn country, with large areas under occupation, poses formidable challenges.