Three members of the same family were killed – the gunman was shot dead by a civilian.