Gat is a slang term for Gun. The word enjoys quite popular usage in late 20th/early 21st century African-American culture. Contributors to Urban Dictionary have proposed that this usage comes from the shortened form of Gatling gun.
The word may also be used as a verb, e.g:
"Homie commin' at ya, Yah, you know I'm gunna gat ya." -Cypress Hill