WESTPORT — A man allegedly posted a threat on his public Facebook page that he would bury a Westport police officer alive.

Police were called to the Westport Public Library Sept. 10 after a library user found the threatening message on a public computer. While trying to log into his own Facebook page, the man told police he saw an account under the name Lawrence Kozar was still logged in and noticed the post on his main page.

Kozar was previously arrested on Aug. 30 for allegedly threatening an officer and a civilian employee in the lobby of police headquarters. The same officer was referenced in the Facebook threat. He was also arrested and charged with criminal trespassing in June for returning to Norwalk Hospital Associates after police warned him not to return.

Police recently issued a warrant for Kozar’s arrest after an investigation concluded he had posted the online Facebook threat. He was arrested in the early hours of Oct. 1 after an officer recognized the 58-year-old walking along Main Street.

Kozar was charged with threatening, second-degree, and given an Oct. 6 court date. Kozar’s bail was set at $5,000. Police listed his last known address as the address of Gillespie Center, a shelter on Jesup Road.

Lweiss@hearstmediact.com; @LauraEWeiss16