A statement on Cameroonian state television said hundreds of militants attacked a military camp the day before near the border with Nigeria.
Information minister Issa Tchiroma Bakary said the fight lasted five hours.
He said a Cameroonian corporal was killed and four other soldiers were wounded, but gave no other details.
Boko Haram is responsible for thousands of deaths since it began its insurgency against the Nigerian government.
The group has also been blamed for a growing number of attacks in neighbouring countries including Cameroon.