Authorities in Ecuador are investigating a brazen attack on a public television station by an apparent armed gang as “acts of terrorism.”