Pakistani Taliban militants murdered 22 rivals captured this week when they seized a north-western town, a government official said.