"咯嗒一声关上" can be translated as "to close with a click" or "to shut with a clacking sound" in English, depending on the context.
For example:
The door closed with a click. (门咯嗒一声关上了。)
She shut the lid with a clacking sound. (她咯嗒一声合上了盖子。)