Two people were wounded after a bomb exploded in a residential building in the Lebanese city of Tripoli on Sunday, security sources said.