A defendant in a felony case Monday in Grand Island Town Court apparently tried to commit suicide when he got away from Erie County sheriff’s deputies and jumped over a second-floor railing, falling about 15 feet to the floor in Town Hall, sheriff’s officials reported.

Sean C. Riordan, 20, of Grand Island, had just been arraigned on charges of felony assault, weapons possession and menacing in Town Court and was “properly secured and being led out of court” about 11:30 a.m., when he ran from the deputies escorting him and jumped over a railing on the second-floor.

Sheriff’s Detective Brian O’Hara and Deputy Anthony Yavicoli provided immediate first aid, sheriff’s officials reported, and the Grand Island Fire Company responded to help. Riordan was taken to Erie County Medical Center, where he remained in stable condition late Monday.

Riordan was arrested Saturday at his home, after his roommate told authorities Riordan stabbed him with a knife during an argument.

Sheriff’s officials said “a preliminary investigation shows that all sheriff’s office policies and regulations had been adhered to by the deputies who were transporting Riordan.” An investigation is ongoing.