I interpreted that Matt was on drugs and also otherwise not well in the head after seeing his little daughter with a baby, causing him to have no idea what he was doing. I doubt that he would've shot the baby, but in his state of mind he fuzzily thought he could scare the baby into being quiet by pointing a gun.