Depending on the species, most fromias are considered detritivores . A 10 g seems a bit small, but its hard to tell what the size of the star is from the picture.
Also your water params have to be spot on... not necessarily pristine, just cannot shift too much in the way of salinity, ph, etc. as stars are very sensitive to this. This is typically why a smaller tank is not a good idea for Fromias IME - too difficult to keep the params in check with only 10 gallons water to play with. It is also very important to follow correct acclimation procedures with these stars if you decide to give it a go. Do not cut any corners as they will die if acclimated fast- when they say 2 hours+, it really means 2 hours plus.
My personal opinion is that you only try one of these with a larger tank given their sensitivity to change in the water params, something very difficult to manage with a smaller system.