Egypt sacks justice minister after prophet remark