The boy was shot in the left shoulder while playing with a group of youths inside a Brooklyn apartment building Tuesday night, police said.