On a new rifle, you need to allow the charging handle to free run forward. If you ride it down with the carrier, the bolt may not fully lock into the barrel extension, which means that hammer may just be bound up on the bottom of the carrier when you pulled the trigger.
Note: the only time that you can engage the safety is when the hammer is fully cocked back. Once the hammer start to make it's forward travel towards the firing pin (read bound on the carrier), the bottom of the hammer slightly cams the back of the trigger up, and the selector/safety is blocked from going into the safe position.
Since I'm guessing that you new to the rifle, fully clean the rifle before you shoot it. There’s a ton of grease/assembly lube that needs to be removed from the rifle before it's first firing.
Also, only use CLP to clean/lube the rifle. Bore solvent is good in the bore, but remember to get all of the solvent out of the upper before firing. Bore solvent and CLP tend to gum up if you let them mix.