While new elections are long overdue in Palestine, the most recently elected democratic government remains that of Hamas (in 2006). Refusing to accept Hamas as a political party is akin to refusing to accept Sinn Féin as one.
The Izz ad-Din al-Qassam Brigades (which form the military wing of Hamas) only fire on Israel out of sheer frustration because in blatant breach of international law Israel continues to support Israeli settlements within Palestinian territories, prevents Palestinians from rebuilding their homes, wrecks the Palestinian economy through preventing the free movement of goods and labour and, while repeatedly acknowledging the right of Palestinians to live in a fully-independent state, does everything possible to prevent that from coming about.