They were imprisoned by the former royalist government of King Gyanendra .