News media have quoted officials who asked not to be named as saying the attack took place Thursday in the northeastern region , near the town of Ghalawiya , close to the Mauritanian-Algerian border .