Vice President Yemi Osinbajo - who is acting as head of the country while Buhari is on holiday in London, ordered the dismissal of DSS chief Lawal Musa Daura "with immediate effect".
The security operatives also blocked the lawmakers and NASS workers from gaining access to the offices but later allowed the lawmakers go in.
However, Idris was said to have turned down the request, saying he already has enough officers on ground manning the National Assembly. Daura has been directed to hand over to the most senior officer of the State Security Service until further notice.
The meetings took place separately at Professor Osinbajo's office.
The presidency in a statement said the obstruction of lawmakers was without its consent.
How Meghan Markle's clothes have gone from glamorous to grey
From saucer hats to nude heels, on Meghan's 37th birthday , here are a few looks we've seen on both Meghan and Kate . According to the United Kingdom tabloid The Mirror , well-wishers sang "Happy Birthday" as Meghan arrived.
Insiders at the DSS said he was placed under house arrest at the presidential villa.
Although an earlier statement issued by Akande announcing Daura's sack did not give reasons for the action, it is believed that it is connected to the blockade of the National Assembly by DSS operatives on Tuesday.
The new DSS boss who came to the Presidential villa Abuja, in an SUV vehicle was later chauffeured in a different auto, a Peugeot 508 model with Lagos registration number: AAA 961 BB as he left.
National chairman of the All Progressives Congress, Comrade Adams Oshiomole, held a crucial meeting with some senators in the party on Tuesday. "Seiyefa is also a member of the National Institute".
Before his termination, Osinbajo summoned Daura to the Presidential Villa and met with him after his arrival around 1:15pm, according to the News Agency of Nigeria (NAN).