A mass shooting in Texas on Thursday has left at least six people injured, with some in critical condition, according to preliminary reports.