Hundreds of mourners have gathered outside a mosque in Homs, Syria, after a bombing killed eight people and wounded 18.