Pakistan president sees success in militant war