ENCINITAS (CBS/AP) — A 13-year-old boy diving for lobsters was attacked by a shark on the Southern California coast early Saturday but was quickly pulled from the water by others and flown to a trauma center, authorities said.

The boy suffered traumatic upper torso injuries but the attack was “nonfatal,” city Lifeguard Capt. Larry Giles told reporters at Beacon’s Beach in Encinitas, about 27 miles north of downtown San Diego.

READ MORE: Vegetation Fire Shuts Down Hwy 146, Prompts Evacuation of Pinnacles National Park In Monterey County

The attack occurred just before 7 a.m., during the opening hour of California’s popular spiny lobster season.

The boy was attacked in about 9 feet of water approximately 150 yards offshore. He was brought to shore by three bystanders, Giles said.

Emergency responders arrived, and the boy was flown by helicopter to a trauma center.

“He was conscious, he was above water, and the bystanders were able to get him up on the beach … and he was talking all the way to when he was being transported,” the captain said.

The three rescuers were identified only as an off-duty police officer from nearby Oceanside, an off-duty state lifeguard and a friend who were also diving for lobsters. Giles said the trio provided a “tremendous amount of aid to that young man.”

READ MORE: South Bay Surfer Helping To Clean Up Beaches In Half Moon Bay, South Africa

Witnesses estimated the shark was about 11 feet long, but the type was not known, he said.

Lifeguards immediately turned to clearing people out of the water. Giles noted there were multiple other divers in the area.

The waters off about 4 miles of beach were ordered closed for 48 hours, and a nearby surfing competition was canceled before it got underway.

Lifeguards were being brought in from various agencies while a San Diego County sheriff’s helicopter scouted from the air. But in the immediate hours after the attack, there was no sign of shark activity or signs of typical prey such as seals, dolphins and porpoises, although a seal was reported in the area earlier, Giles said.

“This is a nonfatal incident; we don’t want anybody else getting injured,” he said.

The most recent fatal shark attack in the area was in 2008 when a swimmer was killed at Solana Beach. A more recent attack along the Camp Pendleton coast of north San Diego County was not fatal.

Earlier this month, a man died after being bitten by a shark off Cape Cod, Massachusetts.

MORE NEWS: UPDATE: Gilroy Garlic Festival Shooting Victims Remembered on Somber 2nd Anniversary;

© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report