Thousands attend military funeral for slain Palestinian official