Authorities in Turkey have released five people who had been detained since Saturday on suspicion of planning to attack Turkish Prime Minister Recep Tayyip Erdogan .