A mother who had been denied welfare benefits killed herself and shot her two children after a seven-hour standoff at a government social services office, police said.