You can attack him in the zone Mines of Gloomingdeep—Jail Break, but only up until the point where you open the door to the cell. After that, he becomes unattackable.
Within the main Mines of Gloomingdeep zone, to the best of my knowledge, you cannot attack him.