LOS ANGELES (AP) — Miley Cyrus obtained a temporary restraining order Friday against an Arizona man who was recently detained by police while trying to meet the singer-actress.

A Los Angeles judge granted Cyrus the stay-away order against Devon Meek after Cyrus’ lawyers filed court documents stating that Meek, 24, believes the singer is communicating to him through her songs.

READ MORE: Andrew Marnell Of Beverly Grove Pleads Guilty To Taking Out $9 Million In COVID Relief Loans For Gambling Trips To Vegas, Luxury Purchases

Los Angeles police arrested the man from the southeastern Arizona city of Sierra Vista on May 16, and he was placed in a psychiatric hospital, where he remains. Meek has said he will continue to try to meet Cyrus once he is released, according to filings by Cyrus’ attorneys and a police detective.

Meek was arrested outside a property he believed is owned by Cyrus, but the documents don’t specify the location.

Detective Rosibel Smith wrote in a sworn statement that Meek told officers they should shoot him in the head if he couldn’t meet Cyrus.

READ MORE: Chey Smart Of Costa Mesa Arrested After Drone Carrying Drugs Lands At Theo Lacy Jail In Orange

Smith wrote that a police officer who interviewed Meek “informed me that Mr. Meek stated that when he is released from the hospital, he will not stop seeking Ms. Cyrus and that he will continue to go to Ms. Cyrus’ residence until Ms. Cyrus accepts him or he dies.”

A hearing to extend the restraining order for three years is scheduled for June 16.

There is no declaration from Cyrus in the filing. The pop star rose to fame as the star of the TV show “Hannah Montana” and has recently postponed several concerts while she recovers from her representatives have said is an allergic reaction to antibiotics.

MORE NEWS: California Recall Could Boost Newsom's Clout For 2022

(© Copyright 2014 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)