Tunisian forces killed 28 jihadists who attacked police and army posts near the Libyan border on Monday in a new spillover of violence that also saw four civilians killed.