After you defeat Mega Tyranitar, it will revert to its regular Tyranitar form for you to catch. Once you've caught it, you can use Mega Energy to Mega Evolve Tyranitar. You'll have a limited number of Premier Balls you can use to catch Tyranitar, so make each one count.