The Islamic Militant Group Hamas has claimed victory in Wednesday 's Palestinian legislative elections .