The Pakistani military says its troops killed 30 militants in the country 's northwest Saturday , in an operation that also killed six soldiers .