UNIVERSAL CITY (CBSLA.com) — The Los Angeles County coroner’s office has identified a man who shot and killed himself at the Universal Studios theme park on Friday afternoon.

Andrew Thomas Jones, 38, was a resident of Fullerton, according to coroner’s investigator Kristy McCracken. He shot himself to death near a restaurant where his ex-girlfriend works, using a gun he was able to sneak into the theme park.

READ MORE: Buy Them Now: Shoppers Urged To Get A Jump On The Holidays Due To Global Shipping Problems

Authorities said the incident happened in an area designated for smokers behind the Despicable Me ride and fun zone, which is the park’s newest attraction. The incident was out of the view of many but children and families were nearby.

Investigators said the man had a restraining order against him but in the last few weeks continued to show up at the theme park, where his estranged girlfriend works. Security was notified when she saw him.

READ MORE: LA County Sheriff's Employee Killed, Woman Hurt After Vintage Sports Car Careens Into Pole In Temple City

A deputy recognized the man from prior context and approached him, according to Lt. Eddie Hernandez of the Los Angeles County Sheriff’s Department.

“This individual stood up, turned around, retrieved a handgun from his back pocket or somewhere in his back area,” the lieutenant said.

The deputy said the man pulled the trigger 30 seconds later.

MORE NEWS: Mayim Bialik, Ken Jennings To Host ‘Jeopardy!’ Through End Of Year

(©2015 CBS Local Media, a division of CBS Radio Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Wire services contributed to this report.)