At 5:30 a.m. , in East Flatbush , Brooklyn , a man was fatally shot in the lobby of his apartment building , apparently caught in a gunfight between two men who had a longstanding feud , friends and neighbors said .