Lebanese security forces are questioning a man they say was about to carry out a suicide bomb attack at a busy cafe in the capital Beirut.