The driver of a pickup truck has been shot dead by police after crashing his vehicle into a shopping centre in Texas and injuring five people, including a six-year-old child.