Lebanon's interior minister has vowed to bring to justice guards seen in online video clips beating Islamists detained in the nation's main prison.

Nouhad Mashnouk told reporters Sunday that two guards whose faces are seen in the clips have been arrested and referred to military prosecutors. He said: "I condemn these violations and will not cease to pursue the case for one second."

The clips show a room full of detainees stripped down to their underwear. In one clip, a guard beats a detainee on his back with what looks like a green hose. Another clip shows a second guard taunting a bearded detainee while also hitting him on the back.

The detainees, held in the Beirut's Roumieh prison, were handcuffed behind their back while squatting on a flooded floor.