Two people have been killed after Israeli settlers opened fire on a school in the occupied West Bank.