Three people were killed in a school shooting in the southern Philippines on Friday, including the 16-year-old suspected gunman, with eight others injured, the town's mayor said.