Pakistan 's military says it has killed 30 militants in an air strike on a Taliban hideout near the Afghan border .