After about three hours of negotiations , the gunman released the hostages when authorities delivered on his request for a six-pack of soda .