The man fired three blanks after approaching the rear entrance of the building in Ankara, Hurriyet Daily News reported.
A Cabinet meeting headed by Turkish Prime Minister Recep Tayyip Erdogan was in session at the time.
Security forces immediately arrested the man.
A motive for the incident was not known.
Interpol investigating stolen passports on missing flight
Susan Sarandon 'very excited' about daughter's pregnancy