It was unclear if the attack was linked to a continuing struggle between the army and groups seeking to form a breakaway state called Ambazonia in the English-speaking west.