Gunman killed two children and injured four before being cornered by police