An explosion at a military barracks in Viacha, Bolivia, has killed at least 10 people and injured dozens.