Welcome to the forums. Difficult to say what kind of rock this is. I would either go for a extrusive lava (igneous) or for iron concretions in a sandstone (sedimentary with diagenetic overprint).
Are there loose sand (quartz) grains to be seen. Does it scratch into metal? If so, it's probably a sandstone.