A man says in a lawsuit that a security guard's metal detector caused his pacemaker to fail as he entered Pittsburgh Municipal Court.

Vince Kelly filed a lawsuit Tuesday against the city and Allegheny County, who jointly control the courts building, which is connected to the county jail.

More on this...

Kelly says when he entered the building in January 2014, he warned the security guard that the walk-through magnetometer could cause his pacemaker to fail.

The lawsuit says the guard let Kelly avoid the device but then waved a hand-held wand too close to his chest. He says his pacemaker failed, and he fell and lost consciousness briefly.

The city and county aren't commenting.

Victory Security employs the guard and couldn't immediately be reached for comment Wednesday.