to trap sth by closing a door, lid, etc. on it
shut sth in sth
Sam shut his finger in the car door.
Definiciones del Oxford Advanced Learner's Dictionary, 9.ª edición