A 13-year-old schoolboy has been detained in Belgrade, Serbia, after eight children and a guard were shot dead at a school.