Confusion over the location of the morning shooting that sent two high school students to the hospital led the Los Angeles Police Department to take the unusual step of sending out an email Thursday saying that the incident did not take place at William Howard Taft High School in Los Angeles, and that the campus was safe.

The shooting took place at Taft Union High School in Taft, near Bakersfield.

At least one news outlet, the Daily Beast, had a link to a Bakersfield television station story, but said that students were wounded "after gunfire broke out at Taft High School in the Woodland Hills district of the San Fernando Valley in Los Angeles, California."

PHOTOS: Shooting at Taft Union High School

The LAPD said in its email there was no threat at Taft High in Woodland Hills and that the incident had taken place in the Kern County city, about 115 miles north of Los Angeles.

"This has caused some confusion, understandably, for our community, given the similar names. There has been no threat to William Howard Taft High School in Woodland Hills," the LAPD said.

Kern County officials said a suspected shooter was in custody and was believed to be a student at Taft Union. The incident was reported shortly after 9 a.m.

A gun has been recovered from the scene, authorities said.

ALSO:

Junior Seau had brain disease at time of suicide, tests show

Boy kills neo-Nazi dad: Protecting family or premeditated murder?

Taft Union High School shooting suspect believed to be a student

--Andrew Blankstein