Police say an employee at a government building opened fire ‘indiscriminately’ before being killed by officers.