An attacker opened fire at an education department in southern Saudi Arabia on Thursday, killing six employees, a senior Saudi official said.