In Arizona it is legal to cross the road, outside of a crosswalk. Given that this was actually near an intersection, it probably wasn't legal in this case.
But that isn't the issue. The issue is a self driving car, which is supposed to be better than a human driver, hit the person. A person died because a company was testing their product. A product that want ready to be used in real world conditions.