Seven police officers have been killed in clashes with gunmen in central Tunisia, security sources report.