The 43-year-old man was detained after officers were called to Harbour View in Musselburgh, East Lothian, yesterday morning.
A police spokesman said: “Officers were called to Harbour View in Musselburgh around 10.50am after concerns were raised over the behaviour of a resident in a property there.”