The Anchorage Daily News reports the man is an active-duty military member. Police did not reveal his name or branch.
Police spokeswoman Anita Shell says the man had left Joint Base Elmendorf-Richardson, where both Army and Air Force personnel are stationed.
Base regulations prohibit military personnel from carrying loaded, personal guns.
A 3-month-old baby and a dog were in the car.
The man parked in the Tikahtnu Commons lot just before noon and was preparing to meet his wife for lunch.
Shell says the man was seating the pistol's magazine with his finger on the trigger when it fired.
More Northwest Headlines
1 dead, 2 injured in drive-by shooting in Federal Way Suit seeks to block anti-tax measure from Washington ballot 3:38 p.m. Shell icebreaker retreats after showdown with protesters 3:38 p.m. Tacoma recycling company fined again for toxic spill 1:09 p.m. State fines Seattle terminal operator for health, safety violations 1:08 p.m. Washington cranberry growers anxious for fall rain at harvest 1:07 p.m. $500,000 bail set for man accused of Blaine shooting 1:05 p.m. King County sheriff’s deputy to be fired for sleeping on job 1:04 p.m.
Our new comment system is not supported in IE 7. Please upgrade your browser here.