At least 55 worshippers have been shot dead at a mosque in northeast Nigeria, officials in Borno State say.