Late Libyan leader Muammar Gaddafi's son Hannibal has been freed after being briefly kidnapped by an armed group in Lebanon, security sources say.