A man armed with an assault rifle opened fire inside a church in South Texas on Sunday, killing 26 and wounding at least 20 others in what the governor called the deadliest mass shooting in the state's history.