Man allegedly tries to rob a cab driver at gunpoint, ends up getting shot with own firearm