Enter the barn and walk to the right.
On the floor is a GUN. Pick it up and walk the ladder to go to the loft. Walk to the left and find the robot there. Talk to the robot and ask why he did it. Learn more about the killings and the motive. Then use your gun on the robot to end the threat of this security bot.
Game source: A copy of the game was found here on the internet.