Robber drops gun, flees with money after being shot