A Pakistani government official says security forces have killed at least 20 militants after coming under attack near the Afghan border.
Wajid Khan says 22 troops were also wounded in Thursday's gunbattle in the northwestern Kurram tribal region.
He says the fighting began when a group of Pakistani militants attacked a security post. The troops returned fire and killed 20 militants.
The death toll could not be independently confirmed as the fighting was in a remote mountainous area that is off-limits to journalists.
Kurram is considered a main base for the Pakistani Taliban. Scores of insurgents are believed to hiding there after escaping military operations in the nearby tribal regions in recent years.
THIS IS A BREAKING NEWS UPDATE. Check back soon for further information. AP's earlier story is below.
ISLAMABAD (AP) _ Pakistan's prime minister toned down his criticism of the country's powerful generals Wednesday, a sign of lessening tension between the civilian government and the army that some predicted could topple the nation's leaders.
The two sides have long been in conflict, but tempers flared in recent months over a secret memo allegedly sent by the government to Washington last year asking for help in stopping a supposed army coup after the U.S. operation to kill al-Qaida founder Osama bin Laden. The government has denied any connection to the letter.
The political crisis has come as the government is facing an array of challenges, including a struggling economy, rampant militant violence and troubled relations with its most important ally, the United States.
Denying it ever planned to carry out a coup, the army was outraged by the memo and pushed the Supreme Court to investigate, against the government's wishes. The probe prompted a war of words between Prime Minister Yousuf Raza Gilani and the army. He tried to calm that on Wednesday.
"I want to dispel the impression that the military leadership acted unconstitutionally or violated rules," Pakistani state television reported Gilani as saying. "We have to be seen as being on the same page."
His comments followed a meeting Tuesday with army chief Gen. Ashfaq Pervez Kayani and the head of the army's powerful intelligence agency, Lt. Gen. Shuja Pasha. The talk was another sign tempers had cooled.
Gilani previously criticized the army for cooperating with the Supreme Court investigation and said the standoff was nothing less than a choice between "democracy and dictatorship."
The army had warned of possible "grievous consequences" if the government did not tone down its criticism.
The conflict raised fears of a military coup, something that has happened three times since Pakistan was founded in 1947. Many analysts doubted a coup was imminent, but some speculated that the army was working with the Supreme Court to oust the government through constitutional means.
The court has clashed with the government on a separate case involving old corruption charges against President Asif Ali Zardari and even threatened to hold the prime minister in contempt over the matter.
In apparent sectarian violence Wednesday, gunmen on motorcycles killed six Shiite Muslims in two attacks in different parts of Pakistan.
Three Shiite lawyers were killed and one wounded in the southern city of Karachi, said local police officer Naeem Shaikh. The dead included a father, son and nephew, he said.
Three Shiites riding in a car were killed in the southeastern city of Quetta, said police officer Shaukat Khan. The dead included a member of the Federal Investigation Agency, he said.
Sunni Muslim militants have carried out scores of bombings and shootings against minority Shiites in Pakistan. In recent years, Sunni attacks on Shiites have become far more common.
The Sunni-Shiite schism over the true heir to Islam's Prophet Muhammad dates back to the seventh century.
Associated Press writers Zarar Khan in Islamabad, Ashraf Khan in Karachi and Abdul Sattar in Quetta contributed to this report.