Gunmen shot dead five members of a family in an attack on their house near the northern Iraqi city of Mosul late on Wednesday, police officials and hospital sources said.