Israeli soldiers mistakenly shot an operative of Islamist group Hamas on Thursday who had been trying to stop Palestinians approaching the Israel-Gaza border, the Israeli military said.