Mozgus: Take your own advice. They say when you enter the town that you can use a gun in self defense, and thats what I did. I was shot before I even equipped a gun. This is a bug in the game.
It's not a bug in the game, it's just the way the post-apocalyptic world works. You're just some asshole that wandered in out of the desert. Until you prove otherwise, you usually aren't worth shit to people from a town compared to anyone who lives in that town, even if you're good and they're evil.
You can usally only break this "rule" when you're following quest instructions.
But most of the time, you can't attack anyone in a town without turning the entire town against you. If they attack you first, it's usually not considered self defense on your part, because you must have provoked them. Usually in a "town" no one will attack you first unless you do something to trigger their hostility. This is different from "monsters" like Radscorpions, which will generally attack as soon as they see you.
The game probably figures you "attacked" Gizmo by refusing the job. It's almost like you tried to steal from him and failed, which often turns people hostile. Since your action triggered Gizmo's hostility, it's all considered your fault by the game engine and the town.
I imagine that from a programming standpoint, you're going down the same path if you piss someone off by stealing, shooting at them, or making them hositle through dialogue.
Junktown is a bit tougher than some other places because "Mayor MacGyver" is such a tight-ass. (The store owner Killian Darkwater is voiced by Richard Dean Anderson, star of MacGyver, Stargate, etc.) He wants to clean up his town, but everything has to be on the up-and-up. Basically, you have to be pretty careful to follow the "script" in Junktown, or everyone get's pissed at you. I took me a few tries to get it right, and I actually gave up on one the quests in the town because I couldn't figure out how to finish it without everyone going aggro.
There are a few towns in Fallout 1 & 2 where you can kill a merchant-type guy and steal all his stuff and no one else in the town will care. Because they all think he's a bag of dicks. That's a great way to get loot, if you can figure out who everyone important hates.