Israeli army confirmed it opened fire on a group of people, saying they had approached soldiers before being targeted.