Eight armed men have been killed as a bomb went off by mistake near the Syrian capital city, Damascus.