The incident in the Ross Place area forced the precautionary evacuation of a small number of nearby properties.
Police Scotland confirmed they were called to the incident at around 8.20pm yesterday.
“Due to the presence of an unidentified device in the address, Scottish Fire and Rescue and EOD (Explosive Ordnance Disposal) were called to assist,” the force said in a statement.
No-one was injured and police stressed that there was no danger to the public at any time.
A 17-year-old man has been detained in relation to a separate matter.