Prime Minister Benjamin Netanyahu apologized for what he called a “tragic mishap” and said the Israeli military would conduct an investigation.