Men in custody after alleged robbery goes awry with gunshot