The Israeli military said all five were militants posing as reporters.