Israeli Prime Minister Benjamin Netanyahu says he has sacked his defence minister Yoav Gallant.