A young child was injured by shards of glass after a “large piece of masonry” was thrown through the window of a house.