LEICESTER, England (CNN) -- Four men have pleaded guilty to offenses linked to a plot to kidnap a British Muslim soldier on leave and behead him in a garage.

Parviz Khan, Basiru Gassama, Mohammed Irfan, and Hamid Elasmar entered their pleas several weeks ago, but the media were restricted from reporting the matter until Tuesday, when two other men went on trial alongside the four.

The four also admitted charges related to sending equipment to terrorists.

Leicester Crown Court was told that Khan, 37, devised the plot to kidnap and kill the soldier and send equipment to terrorists in Pakistan and along the Afghan border.

A jury heard that Khan intended to behead the soldier "like a pig" and release footage of the killing on the internet, the British Press Association reported.

Prosecutors said that Khan hoped to kidnap the Muslim soldier in Birmingham's Broad Street entertainment quarter with the help of drug dealers, the agency added.