Dozens of young girls were buried after a secondary school was targeted in the bloodiest attack in Afghanistan in more than a year.