Hamas have ‘badly miscalculated’ consequences of going to war with Israel