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.
Trader Joe's: Car crashes into Long Island store, injuring 11
Selena Gomez drops F-bomb, walks off stage during Jingle Ball performance