Why won’t my D3400 take flash pictures even when focused?

Recently my camera has randomly stopped letting me take photos on settings that have a flash or have a flash option. It focuses, and goes as if it is going to take a picture but nothing happens. No warnings, no beeps nothing. It`ll only shoot if I do not pop up the flash/disable it. It pops up normally.

What I have done so far:

->reset shooting menu
->reset setup menu
->battery is charged
->lens is attached correctly (it`s the kit 55-18mm one)

One thing I did was to try to take a picture on manual mode with flash and lower gradually while pressing the shutter release; it shoots about halfway down, when the camera no longer detects the flash and gives the alert of low light.