Two rockets fired from an unknown location have exploded outside Beirut, a security source says, with one landing just meters from an entrance to the presidential palace.