PESHAWAR, Pakistan — The Pakistani Taliban said Wednesday that they were ending a six-week-old cease-fire but would continue peace talks with the Pakistani government.

In a statement emailed to journalists, Tehrik-e-Taliban Pakistan, as the group is formally known, accused the military of torturing prisoners and killing 50 militants during the cease-fire.

“The T.T.P. showed restraint and patience over the ongoing operations,” said a spokesman for the group, Shahidullah Shahid, in reference to the Pakistani military. “But the government failed to take notice of this.”

The Taliban announced a one-month cease-fire on March 1, then extended it. But militant attacks continued in April, killing dozens of civilians in Islamabad and elsewhere.