The foiled attack happened in Viimsi, north of the capital, Tallinn