At least 29 people were killed in two attacks in northern Burkina Faso on Sunday, in a region prone to jihadist violence, the government said.