The source did not give further details about the attack which took place on Thursday night in the Ain Defla area.
Algeria has found stability after a 1990s war with armed Islamist groups. But al Qaeda-allied fighters and a splinter armed group loyal to Islamic State are still active in pockets of the country, mostly in remote mountain areas.