Restraining order alleges officer who was shot threatened harm to herself, others