A suicide bomber has blown himself up at a Shia religious ceremony in north-east Nigeria, killing about 20 people, eyewitnesses have told the BBC.