Pakistan hanged four Islamist militants on Sunday in the second set of executions since the government lifted a moratorium after the Taliban massacred 132 children and nine others at a school last week.