PALMDALE, Calif. -- Authorities say they caught a 14-year-old suspected of shooting a former classmate at a California high school after the boy called his father to say he fired his gun in the air and was headed to a grocery store near campus. A boy was shot in the arm at a southern California high school Friday morning, the Los Angeles Sheriff's Department said.

Los Angeles County Sheriff Jim McDonnell said Friday that the 14-year-old's father then called a family friend who's an off-duty police officer and told him where the boy was.

The off-duty officer, who works for Los Angeles police, then detained the teen.

Get Breaking News Delivered to Your Inbox

Sheriff's spokeswoman Nicole Nishida says the 15-year-old victim was shot in the arm and is expected to fully recover.

The rifle used at Highland High School in Palmdale was found in a field near the school.

Investigators say the shooting stemmed from a dispute between the 14-year-old and the victim.

911 calls reported a man with a gun at Highland High School in Palmdale around 7 a.m. and the school was later cleared after law enforcement rushed to the scene.

The incident appears to be isolated and there's no indication the student suspect tried to shoot others, the department says. There were other students in the area of the shooting, but it wasn't clear whether it happened on campus or just outside. School wasn't in session when incident happened, but students were beginning to arrive.

WATCH: Massive law enforcement response outside Highland HS after man with a gun reported on campus https://t.co/Pl44CtQoBm pic.twitter.com/xED7TrNdXj — CBS Los Angeles (@CBSLA) May 11, 2018

All Antelope Valley Union High School District schools were placed on lockdown and Antelope Valley College canceled classes and closed its locations until noon in response, the station reports.

The FBI was on the scene offering assistance, reports CBS News' senior investigative producer Pat Milton.

Update: 1 suspect being detained regarding the person with a gun the call at Highland High school in Palmdale. @PalmdaleSheriff @LANLASD @SEBLASD @SCVSHERIFF Deputies on scene searching campus. No other information available. — LA County Sheriff's (@LASDHQ) May 11, 2018

A message posted to Highland High School principal's Twitter account urged everyone to stay clear of campus.

Sheriff's deputies in Palmdale also responded to reports of shots heard around 7:30 a.m. at Manzanita Elementary School, which is located about seven miles from Highland High, but searched the campus and said there was no evidence of a crime.

This is a developing story. Check back for more details.