It’s because there are different definitions of intentional and accidental in this context such that they are not always mutually exclusive.
The strike was intentionally targeted on those vehicles, but IDF claims it was accidental in that they were mistaken about the occupants of the vehicles. Whether this is true is unclear at this time.