Eight people were killed in northeast Nigeria when a suspected female suicide bomber detonated her explosives near a camp housing displaced people, officials say.