The death toll of Palestinians killed by the Israeli military campaign has exceeded 40,000, according to Gaza authorities.