Two students opened fire in a high school in the central Philippines, killing three fellow students and wounding 20 others.