This latest attack is a little puzzling at first glance. The Taliban does not gain militarily with the destruction of maritime patrol aircraft. The terror angle is also limited, as it was a specific targeted attack on a military facility and not a civilian target.
The only "victory" that I can think of for now is to show the incompetence of the Pakistan armed forces. They have done it before, with an earlier attack on an army base.