Nigerian security forces have opened fire on protesters angry over the deaths of 37 miners who died in detention.