Israel has acknowledged that shots fired by its military injured two UN troops in southern Lebanon on Friday.