Army forces militants out of strongholds in the Swat valley, officials say