Images of the Prophet are proscribed in Islam. Insulting religion under Pakistan's strict blasphemy laws can carry the death penalty.
Dozens of men gathered in the northern city of Muzaffarabad in Pakistan-administered Kashmir, yelling slogans that included "Stop barking, French dogs" and "Charlie Hebdo, stop".
"The government of Pakistan should immediately end its diplomatic relations with France as a protest," Sunni cleric Mohammad Zaman said at the rally.
The protest ended peacefully after the men stomped on a French flag, dowsed it in petrol and then set it ablaze.