Ismail Haniyeh has been elected to a second term as chairman of the Hamas political bureau in Gaza.