Texas police shot dead two gunmen who opened fire on Sunday outside an exhibit of caricatures of the Prophet Mohammad.