Dozens were also injured. Driver shot himself, security official said, but it was unclear whether this was a terrorism attack.