Updated at 12:40 p.m.: Revised to add a statement from Apple.

A retired Dallas police officer working security shot and killed an armed man in body armor who was trying to rob an Apple store Tuesday morning, police said.

The Apple store was closed Tuesday. (Simone Carter / Staff)

The shooting occurred around 2:30 a.m. at the Apple store in the 3100 block of Knox Street. According to police, a man armed with an assault rifle tried to break into the rear of the building and then tried to disarm the security guard.

The guard fired multiple times and hit the suspect, who ran a short distance away before collapsing, police said.

The man died later at a hospital. His name has not yet been released.

The Apple store didn't open Tuesday and will remain closed until at least Wednesday.

Vanessa Cantu had hoped to buy some AirPods but was turned away by a sign on the door.

"That's scary, and crazy," said the 35-year-old Realtor, noting how safe the neighborhood usually is. "So that makes it even scarier."

Matt Bardwell, a mural artist who waits tables at the nearby Chuy's on McKinney Avenue, said the bloody break-in was out of character for the Knox-Henderson area.

"Serious crimes like that don't usually happen in this neighborhood," the 43-year-old said. "Every once in a while, though."

Apple released a written statement Tuesday afternoon saying the fatal shooting was a "tragedy."

"We are grateful that no one else was involved," the company said. "We are committed to providing a secure environment for all who enter our stores."