A method of treating pancreatic cancer includes: inserting a device into a stomach or a duodenum securing at least a portion of the device in position relative to the stomach or the duodenum and delivering ultrasonic energy from the device to treat a target site in a pancreas.