Authorities arrest fast-food pistol-whipping burglar