Prime Minister Benjamin Netanyahu likened on Wednesday (August 20) Hamas to the Islamic State militants, adding that they are "a branch of the same tree".