The Israeli military said it carried out an airstrike in the vicinity of one of Gaza’s main hospitals on Monday and that it “regrets any harm” to innocent civilians after Palestinian health officials said the strike killed at least 20 people, including four journalists.