SANTA FE, N.M. (AP) — A man accused of killing five people in a June shooting rampage in northern New Mexico has been moved to an undisclosed location after twice attempting to escape.

The Santa Fe New Mexican ( ) reports Damian Herrera was taken away Thursday from the Rio Arriba County jail in Tierra Amarilla and that officials say they either didn't know his location or couldn't comment.

One of the escape attempts involved an assault on a guard, and Sheriff James Lujan has called Herrera a danger to the jail.

Defense attorney Todd Farkas says Herrera's transfer followed a sealed court order and an agreement between public defenders and prosecutors.

Herrera is accused of fatally shooting his stepfather, his brother and his mother in Madera and then killing strangers in Tres Piedras and Abiquiu.