TRIPOLI - Clashes erupted between the security forces and pro-Gaddafi militants, leaving four troops and 20 militants dead, the source said.