Six people, including two soldiers, have been wounded in clashes between the Lebanese Army and gunmen in the northern city of Tripoli, a security source says.