Twenty-one people, most of them members of the security forces, have been killed in Burkina Faso in attacks by suspected jihadists, security sources said on Wednesday.