Heavy gunfire rang out at a military base in Burkina Faso’s capital early Sunday, prompting fears that a coup attempt was underway after weeks of growing frustration with the government’s handling of the Islamic insurgency wracking the country.